note 34991 deleted from function.serialize by didou

From: Date: Thu, 14 Aug 2003 10:52:53 +0000
Subject: note 34991 deleted from function.serialize by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54154@lists.php.net to get a copy of this message
Note Submitter: sven@uebelacker.net ---- Sorry there's an error in one line of the symm_crypt function: //fit strlen of $key to strlen of $value if (strlen($value) < strlen($key)){ //cut the key to strlen of $value $key=substr($key,0,(strlen($value))); } elseif (strlen($value) > strlen($key)){ // duplicate key & cut the key to strlen of $value $key=substr(str_repeat($key, 1+((int)(strlen($value) / strlen($key)))), 0, strlen($value)); } Svn.

« previous php.notes (#54154) next »