OSDN Git Service

htmlsc(): Just sugar for htmlspecialchars(), and a foundation
[pukiwiki/pukiwiki.git] / plugin / stationary.inc.php
index e36883b..af282ff 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: stationary.inc.php,v 1.8 2006/02/07 06:26:42 teanan Exp $
+// $Id: stationary.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
 //
 // Stationary plugin
 // License: The same as PukiWiki
@@ -40,7 +40,7 @@ function plugin_stationary_convert()
                $result = join(',', $args);
        }
 
-       return '#stationary(' . htmlspecialchars($result) . ')<br />';
+       return '#stationary(' . htmlsc($result) . ')<br />';
 }
 
 // In-line type plugin: &stationary; or &stationary(foo); , or &stationary(foo){bar};
@@ -56,7 +56,7 @@ function plugin_stationary_inline()
                $args[$key] = trim($args[$key]);
        $result = join(',', $args);
 
-       return '&amp;stationary(' . htmlspecialchars($result) . '){' . $body . '};';
+       return '&amp;stationary(' . htmlsc($result) . '){' . $body . '};';
 }
 
 // Action-type plugin: ?plugin=stationary&foo=bar
@@ -69,6 +69,6 @@ function plugin_stationary_action()
        $msg  = 'Message';
        $body = 'Message body';
 
-       return array('msg'=>htmlspecialchars($msg), 'body'=>htmlspecialchars($body));
+       return array('msg' => htmlsc($msg), 'body' => htmlsc($body));
 }
 ?>