diff options
author | mm <mm@FreeBSD.org> | 2010-12-11 06:24:27 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-12-11 06:24:27 +0800 |
commit | af27ba3e04f59943d0bb52d6381ba9da460a02e6 (patch) | |
tree | a42b216f1a4ac227e17ce90377439bb11f94895d /lang | |
parent | 7ec4d47f633794159ddc9c13674db4c7f7b42af2 (diff) | |
download | freebsd-ports-gnome-af27ba3e04f59943d0bb52d6381ba9da460a02e6.tar.gz freebsd-ports-gnome-af27ba3e04f59943d0bb52d6381ba9da460a02e6.tar.zst freebsd-ports-gnome-af27ba3e04f59943d0bb52d6381ba9da460a02e6.zip |
- Add patch that fixes PHP bug #53516 (open_basedir not working)
PR: ports/152981
Submitted by: Alex Keda <admin@lissyara.su>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php52/Makefile | 1 | ||||
-rw-r--r-- | lang/php52/files/patch-main-fopen_wrappers.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lang/php52/Makefile b/lang/php52/Makefile index 1cf77da801c1..bb48e557d7b1 100644 --- a/lang/php52/Makefile +++ b/lang/php52/Makefile @@ -7,6 +7,7 @@ PORTNAME= php52 PORTVERSION= 5.2.15 +PORTREVISION= 1 CATEGORIES?= lang devel www MASTER_SITES= ${MASTER_SITE_PHP} MASTER_SITE_SUBDIR= distributions diff --git a/lang/php52/files/patch-main-fopen_wrappers.c b/lang/php52/files/patch-main-fopen_wrappers.c new file mode 100644 index 000000000000..dc33bfc070ae --- /dev/null +++ b/lang/php52/files/patch-main-fopen_wrappers.c @@ -0,0 +1,12 @@ +diff -ruN main/fopen_wrappers.c main/fopen_wrappers.c.orig +--- main/fopen_wrappers.c.orig 2010-12-09 18:04:29.000000000 +0100 ++++ 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 */ |