034c444daf
Update to 7.14.6, Fix for CVE-2023-40619, boo#1215551 OBS-URL: https://build.opensuse.org/request/show/1123213 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpPgAdmin?expand=0&rev=36
21 lines
772 B
Diff
21 lines
772 B
Diff
Index: libraries/lib.inc.php
|
|
===================================================================
|
|
--- libraries/lib.inc.php.orig
|
|
+++ libraries/lib.inc.php
|
|
@@ -28,12 +28,12 @@
|
|
exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
|
|
|
|
// Check to see if the configuration file exists, if not, explain
|
|
- if (file_exists('conf/config.inc.php')) {
|
|
+ if (file_exists('/etc/phpPgAdmin/config.inc.php')) {
|
|
$conf = array();
|
|
- include('./conf/config.inc.php');
|
|
+ include('/etc/phpPgAdmin/config.inc.php');
|
|
}
|
|
else {
|
|
- echo 'Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.';
|
|
+ echo 'Configuration error: Can not include config /etc/phpPgAdmin/config.inc.php.';
|
|
exit;
|
|
}
|
|
|