OSDN Git Service

BugTrack2/236: If you compare two numerical strings, they are compared as integers
[pukiwiki/pukiwiki.git] / plugin / memo.inc.php
index c0e6fe8..cba06c2 100644 (file)
@@ -36,7 +36,7 @@ function plugin_memo_action()
        $postdata_input = $memo_body . "\n";
 
        $body = '';
-       if (md5(@join('', get_source($vars['refer']))) != $vars['digest']) {
+       if (md5(get_source($vars['refer'], TRUE, TRUE)) !== $vars['digest']) {
                $title = $_title_collided;
                $body  = $_msg_collided . "\n";