- Timestamp:
- Dec 12, 2007 10:55:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r290 r294 724 724 } 725 725 726 return $val . '-' . mb_s ubstr(md5($salt . md5($val . $salt)), 0, $length);726 return $val . '-' . mb_strtolower(mb_substr(md5($salt . md5($val . $salt)), 0, $length)); 727 727 } 728 728 … … 753 753 function verifySignature($signed_val, $salt=null, $length=18) 754 754 { 755 // All comparisons are done using lower-case strings. 756 $signed_val = mb_strtolower($signed_val); 755 757 // Strip the value from the signed value. 756 758 $val = removeSignature($signed_val);
Note: See TracChangeset
for help on using the changeset viewer.