OSDN Git Service

Sanitize the 'user' before output.
authorkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 15 Mar 2011 02:01:25 +0000 (02:01 +0000)
committerkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 15 Mar 2011 02:01:25 +0000 (02:01 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1158 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/COMMENTACTIONS.php

index f737be6..5e69eed 100644 (file)
@@ -358,7 +358,7 @@ class COMMENTACTIONS extends BaseActions {
                        $member =& $manager->getMember($this->currentComment['memberid']);
                        echo $member->getRealName();
                } else {
-                       echo $this->currentComment['user'];
+                       echo htmlspecialchars($this->currentComment['user'],ENT_QUOTES);
                }
        }