引用:
Warning [PHP]: Wrong parameter count for md5() in file W:\www\xoopscube\modules\shortcut\edit_func.php line 73
--- modules/shortcut/edit_func.php 13 7月 2008 21:21:14 +0900 1.3
+++ modules/shortcut/edit_func.php 16 8月 2008 11:56:01 +0900
@@ -70,7 +70,7 @@
global $xoopsDB;
$rand = "";
do {
- $cutid = substr(base64_encode(md5($uid.'-'.$url.$rand, true)), 0, 5);
+ $cutid = substr(base64_encode(pack('H*', md5($uid.'-'.$url.$rand))), 0, 5);
$rand = rand(0,1000);
$res = $xoopsDB->query("SELECT cutid WHERE cutid=".$xoopsDB->quoteString($cutid));
} while ($res && $xoopsDB->getRowsNum($res));