OSDN Git Service

BugTrack2/236: If you compare two numerical strings, they are compared as integers
[pukiwiki/pukiwiki.git] / plugin / pcomment.inc.php
index e56ee8b..6dadab0 100644 (file)
@@ -209,7 +209,7 @@ function plugin_pcomment_insert()
                $count    = count($postdata);
 
                $digest = isset($vars['digest']) ? $vars['digest'] : '';
-               if (md5(join('', $postdata)) != $digest) {
+               if (md5(join('', $postdata)) !== $digest) {
                        $ret['msg']  = $_pcmt_messages['title_collided'];
                        $ret['body'] = $_pcmt_messages['msg_collided'];
                }