OSDN Git Service

Replace 'htmlspecialchars' by 'htmlsc'
authorumorigu <umorigu@gmail.com>
Sun, 1 Jun 2014 21:01:07 +0000 (06:01 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 1 Jun 2014 21:01:07 +0000 (06:01 +0900)
commite72eb8997265134c2ecc95173e2570d99e7cbcee
tree153a6d9c45b7fe510bba209f1ea1c03cd622b7dd
parente23ccc3b3b1095360e5555a547471bfc303e49cc
Replace 'htmlspecialchars' by 'htmlsc'

The behavior of 'htmlspecialchars' has changed in PHP 5.4.
The default value of 3rd parameter $encoding is UTF-8.
Almost all EUC_JP characters are handled as invalid UTF-8
sequence and that cause empty output.
http://docs.php.net/manual/en/function.htmlspecialchars.php

The solution used in 'htmlsc' is setting $encoding explicitly.
lib/func.php
plugin/ls2.inc.php
plugin/referer.inc.php
plugin/tracker.inc.php
plugin/versionlist.inc.php