SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2001年08月09日 16:21:47
Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv1190/lib
Modified Files:
	userauth.php 
Log Message:
Fix for PHP warning: "argument passed to unserialize() is not an string".
Index: userauth.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/userauth.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** userauth.php	2001年07月20日 17:40:12	1.7
--- userauth.php	2001年08月09日 16:21:44	1.8
***************
*** 101,109 ****
 		 'edit_area.height' => 22);
 
! $prefcookie = unserialize(fix_magic_quotes_gpc($GLOBALS['WIKI_PREFS']));
! 
! while (list($k, $v) = each($prefs))
! 	 if (!empty($prefcookie[$k]))
! 	 $prefs[$k] = $prefcookie[$k];
 
 // Some sanity checks. (FIXME: should move somewhere else)
--- 101,111 ----
 		 'edit_area.height' => 22);
 
! global $HTTP_COOKIE_VARS;
! if (is_string($HTTP_COOKIE_VARS['WIKI_PREFS'])) {
! 	 $prefcookie = unserialize(fix_magic_quotes_gpc($HTTP_COOKIE_VARS['WIKI_PREFS']));
! 	 while (list($k, $v) = each($prefs))
! 	 if (!empty($prefcookie[$k]))
! 	 $prefs[$k] = $prefcookie[$k];
! }
 
 // Some sanity checks. (FIXME: should move somewhere else)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /