OSDN Git Service

htmlsc(): Just sugar for htmlspecialchars(), and a foundation
[pukiwiki/pukiwiki.git] / plugin / topicpath.inc.php
index 5591c13..66e1bbd 100644 (file)
@@ -1,6 +1,12 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: topicpath.inc.php,v 1.6 2005/01/29 14:31:04 henoheno Exp $
+// $Id: topicpath.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
+// Copyright (C)
+//   2004-2005 PukiWiki Developers Team
+//   2003      reimy       (Some bug fix)
+//   2003      t.m         (Migrate to 1.3)
+//   2003      Nibun-no-ni (Originally written for PukiWiki 1.4.x)
+// License: GPL (any version)
 //
 // 'topicpath' plugin for PukiWiki, available under GPL
 
@@ -44,7 +50,7 @@ function plugin_topicpath_inline()
        while (! empty($parts)) {
                $_landing = join('/', $parts);
                $landing  = rawurlencode($_landing);
-               $element = htmlspecialchars(array_pop($parts));
+               $element  = htmlsc(array_pop($parts));
                if (! $b_link)  {
                        // This page ($_landing == $page)
                        $b_link = TRUE;