SOURCES: phpPgAdmin-config.patch - fix USASCII problem

shadzik shadzik at pld-linux.org
Mon Jun 11 21:30:00 CEST 2007


Author: shadzik                      Date: Mon Jun 11 19:30:00 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix USASCII problem

---- Files affected:
SOURCES:
   phpPgAdmin-config.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/phpPgAdmin-config.patch
diff -u SOURCES/phpPgAdmin-config.patch:1.2 SOURCES/phpPgAdmin-config.patch:1.3
--- SOURCES/phpPgAdmin-config.patch:1.2	Fri Dec  2 16:44:10 2005
+++ SOURCES/phpPgAdmin-config.patch	Mon Jun 11 21:29:55 2007
@@ -15,7 +15,7 @@
 +		echo 'Configuration error: Copy conf/config.inc.php-dist to /etc/webapps/phpPgAdmin/config.inc.php and edit appropriately.';
  		exit;
  	}
- 
+
 --- phpPgAdmin-4.0.1/classes/plugins/Plugin.php~	2005-06-16 17:40:12.000000000 +0300
 +++ phpPgAdmin-4.0.1/classes/plugins/Plugin.php	2005-12-02 17:25:54.525481589 +0200
 @@ -21,7 +21,7 @@
@@ -38,3 +38,24 @@
  
  	// Application name 
  	$appName = 'phpPgAdmin';
+
+--- phpPgAdmin-4.1.2/libraries/lib.inc.php	2007-06-11 21:20:50.321736338 +0200
++++ phpPgAdmin-4.1.2/libraries/lib.inc.php-new	2007-06-11 21:28:43.458844982 +0200
+@@ -6,6 +6,9 @@
+ 	 * $Id$
+ 	 */
+ 
++	// Prevent XSS attacks
++	$PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']);
++
+ 	include_once('./libraries/decorator.inc.php');
+ 	include_once('./lang/translations.php');
+ 	
+@@ -220,7 +223,4 @@
+ 		}
+ 	}
+ 
+-	// Prevent XSS attacks
+-    $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, $lang['appcharset']);
+-
+ ?>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/phpPgAdmin-config.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list