OSDN Git Service

htmlsc(): Just sugar for htmlspecialchars(), and a foundation
[pukiwiki/pukiwiki.git] / skin / tdiary.skin.php
index 9389b53..c321a0c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: tdiary.skin.php,v 1.30 2006/03/07 14:03:02 henoheno Exp $
+// $Id: tdiary.skin.php,v 1.37 2011/01/25 15:01:01 henoheno Exp $
 // Copyright (C)
 //   2002-2006 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
@@ -56,7 +56,7 @@ if (! defined('TDIARY_THEME') || TDIARY_THEME == '') {
        $theme_css = SKIN_DIR . 'theme/' . $theme . '/' . $theme . '.css';
        if (! file_exists($theme_css)) {
                echo 'tDiary theme wrapper: ';
-               echo 'Theme not found: ' . htmlspecialchars($theme_css) . '<br />';
+               echo 'Theme not found: ' . htmlsc($theme_css) . '<br />';
                echo 'You can get tdiary-theme from: ';
                echo 'http://sourceforge.net/projects/tdiary/';
                exit;
@@ -589,7 +589,7 @@ if (isset($pkwk_dtd)) {
 
 <?php echo $head_tag ?>
 </head>
-<body><!-- Theme:<?php echo htmlspecialchars($theme) . ' Sidebar:' . $sidebar ?> -->
+<body><!-- Theme:<?php echo htmlsc($theme) . ' Sidebar:' . $sidebar ?> -->
 
 <?php if ($menu && $sidebar == 'strict') { ?>
 <!-- Sidebar top -->
@@ -701,7 +701,7 @@ function _navigator($key, $value = '', $javascript = ''){
 $title = '';
 if ($disable_backlink) {
        if ($_page != '') {
-               $title = htmlspecialchars($_page);
+               $title = htmlsc($_page);
        } else {
                $title = $page; // Search, or something message
        }
@@ -709,7 +709,7 @@ if ($disable_backlink) {
        if ($page != '') {
                $title = $page;
        } else {
-               $title =  htmlspecialchars($_page);
+               $title = htmlsc($_page);
        }
 }
 $title_date = $title_text = '';