]> git.pld-linux.org Git - packages/php.git/commitdiff
http://bugs.php.net/patch-display.php?bug_id=53516&patch=open_basedir-5.2.15-fix...
authormarcus <marcus@pld-linux.org>
Thu, 16 Dec 2010 08:43:26 +0000 (08:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-opendir.patch -> 1.1

php-opendir.patch [new file with mode: 0644]

diff --git a/php-opendir.patch b/php-opendir.patch
new file mode 100644 (file)
index 0000000..31a2f74
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ruN php-5.2.15/main/fopen_wrappers.c php-5.2.15.ofi/main/fopen_wrappers.c
+--- php-5.2.15/main/fopen_wrappers.c   2010-12-09 18:04:29.000000000 +0100
++++ php-5.2.15.ofi/main/fopen_wrappers.c       2010-12-10 11:32:02.000000000 +0100
+@@ -192,7 +192,7 @@
+               if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
+ #endif
+                       if (resolved_name_len > resolved_basedir_len &&
+-                              resolved_name[resolved_basedir_len] != PHP_DIR_SEPARATOR) {
++                              resolved_name[resolved_basedir_len - 1] != PHP_DIR_SEPARATOR) {
+                               return -1;
+                       } else {
+                               /* File is in the right directory */
This page took 0.736097 seconds and 4 git commands to generate.