From: <lph...@us...> - 2012-04-29 17:36:36
|
Revision: 41179 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=41179&view=rev Author: lphuberdeau Date: 2012-04-29 17:36:29 +0000 (Sun, 29 Apr 2012) Log Message: ----------- Encoding the string to be stored in the database as it contains binary data Modified Paths: -------------- branches/9.x/lib/tikilib.php Modified: branches/9.x/lib/tikilib.php =================================================================== --- branches/9.x/lib/tikilib.php 2012-04-29 17:21:41 UTC (rev 41178) +++ branches/9.x/lib/tikilib.php 2012-04-29 17:36:29 UTC (rev 41179) @@ -264,7 +264,7 @@ if (! isset($prefs['internal_site_hash'])) { require_once 'lib/phpsec/phpsec/phpsec.rand.php'; - $hash = phpsecRand::bytes(100); + $hash = base64_encode(phpsecRand::bytes(100)); $this->set_preference('internal_site_hash', $hash); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |