]> git.pld-linux.org Git - packages/phpPgAdmin.git/blob - phpPgAdmin-config.patch
- fix USASCII problem
[packages/phpPgAdmin.git] / phpPgAdmin-config.patch
1 --- phpPgAdmin-4.0.1/libraries/lib.inc.php~     2005-12-02 17:19:47.000000000 +0200
2 +++ phpPgAdmin-4.0.1/libraries/lib.inc.php      2005-12-02 17:24:01.259851274 +0200
3 @@ -26,12 +26,12 @@
4                 exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
5  
6         // Check to see if the configuration file exists, if not, explain
7 -       if (file_exists('conf/config.inc.php')) {
8 +       if (file_exists('/etc/webapps/phpPgAdmin/config.inc.php')) {
9                 $conf = array();
10 -               include('./conf/config.inc.php');
11 +               include('/etc/webapps/phpPgAdmin/config.inc.php');
12         }
13         else {
14 -               echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.';
15 +               echo 'Configuration error: Copy conf/config.inc.php-dist to /etc/webapps/phpPgAdmin/config.inc.php and edit appropriately.';
16                 exit;
17         }
18
19 --- phpPgAdmin-4.0.1/classes/plugins/Plugin.php~        2005-06-16 17:40:12.000000000 +0300
20 +++ phpPgAdmin-4.0.1/classes/plugins/Plugin.php 2005-12-02 17:25:54.525481589 +0200
21 @@ -21,7 +21,7 @@
22                 // Read in configuration
23                 if ($this->config !== null) {
24                         global $conf;
25 -                       include('./conf/' . $name . '.inc.php');                        
26 +                       include('/etc/webapps/phpPgAdmin/' . $name . '.inc.php');                       
27                 }
28         }
29  
30 --- phpPgAdmin-4.0.1/libraries/lib.inc.php      2005-12-02 17:38:56.000000000 +0200
31 +++ phpPgAdmin-4.0.1-org/libraries/lib.inc.php  2005-12-02 17:37:20.000000000 +0200
32 @@ -9,7 +9,7 @@
33         include_once('./lang/translations.php');
34         
35         // Set error reporting level to max
36 -       error_reporting(E_ALL);
37 +       error_reporting(E_ALL & ~E_NOTICE);
38  
39         // Application name 
40         $appName = 'phpPgAdmin';
41
42 --- phpPgAdmin-4.1.2/libraries/lib.inc.php      2007-06-11 21:20:50.321736338 +0200
43 +++ phpPgAdmin-4.1.2/libraries/lib.inc.php-new  2007-06-11 21:28:43.458844982 +0200
44 @@ -6,6 +6,9 @@
45          * $Id$
46          */
47  
48 +       // Prevent XSS attacks
49 +       $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']);
50 +
51         include_once('./libraries/decorator.inc.php');
52         include_once('./lang/translations.php');
53         
54 @@ -220,7 +223,4 @@
55                 }
56         }
57  
58 -       // Prevent XSS attacks
59 -    $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, $lang['appcharset']);
60 -
61  ?>
This page took 0.031788 seconds and 4 git commands to generate.