diff options
author | Martin Matuska <mm@FreeBSD.org> | 2010-12-10 22:24:27 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2010-12-10 22:24:27 +0000 |
commit | 9047bfa3abb890a039f25a15eb53311ed73b0e03 (patch) | |
tree | b6316f6d27066fdca9fe9c0d67959e0b8e7872f0 /lang | |
parent | Install manpages in the NOPORTDOCS case. (diff) |
- Add patch that fixes PHP bug #53516 (open_basedir not working)
PR: ports/152981
Submitted by: Alex Keda <admin@lissyara.su>
Notes
Notes:
svn path=/head/; revision=266006
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 */ |