[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail:[13897]
From: pdontthink () users ! sourceforge ! net
Date: 2010-01-27 23:36:53
Message-ID: E1NaHRN-0004Qq-0l () 3kljzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 13897
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13897&view=rev
Author: pdontthink
Date: 2010-01-27 23:36:52 +0000 (Wed, 27 Jan 2010)
Log Message:
-----------
Avoid notices in some environments
Modified Paths:
--------------
trunk/squirrelmail/include/init.php
Modified: trunk/squirrelmail/include/init.php
===================================================================
--- trunk/squirrelmail/include/init.php 2010-01-27 23:35:26 UTC (rev 13896)
+++ trunk/squirrelmail/include/init.php 2010-01-27 23:36:52 UTC (rev 13897)
@@ -276,9 +276,12 @@
* QUERY_STRING also needs the same treatment since it is
* used in php_self().
*/
-$_SERVER['REQUEST_URI'] = htmlspecialchars($_SERVER['REQUEST_URI']);
-$_SERVER['PHP_SELF'] = htmlspecialchars($_SERVER['PHP_SELF']);
-$_SERVER['QUERY_STRING'] = htmlspecialchars($_SERVER['QUERY_STRING']);
+if (isset($_SERVER['REQUEST_URI']))
+ $_SERVER['REQUEST_URI'] = htmlspecialchars($_SERVER['REQUEST_URI']);
+if (isset($_SERVER['PHP_SELF']))
+ $_SERVER['PHP_SELF'] = htmlspecialchars($_SERVER['PHP_SELF']);
+if (isset($_SERVER['QUERY_STRING']))
+ $_SERVER['QUERY_STRING'] = htmlspecialchars($_SERVER['QUERY_STRING']);
$PHP_SELF = php_self();
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic