From 6614e8edb43e8f38394bf25cf26399fab1cbf6b2 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 25 Jun 2000 17:02:59 +0000 Subject: - I wrote a long msg but the commit didn't go through. - So here is the short version: - a) Start moving to binary opens in Windows - b) Give checkuid_mode() a small face lift including the fopen-wrappers.c - The mode to this function should at least be a #define but that is for - another day. Anyway this whole stuff should be given more face lifts in - the future. --- ext/standard/link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/standard/link.c') diff --git a/ext/standard/link.c b/ext/standard/link.c index dbec5e087b..18cd67c1dc 100644 --- a/ext/standard/link.c +++ b/ext/standard/link.c @@ -110,7 +110,7 @@ PHP_FUNCTION(symlink) convert_to_string_ex(topath); convert_to_string_ex(frompath); - if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, 2)) { + if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, 2)) { RETURN_FALSE; } if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) { @@ -141,7 +141,7 @@ PHP_FUNCTION(link) convert_to_string_ex(topath); convert_to_string_ex(frompath); - if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, 2)) { + if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, 2)) { RETURN_FALSE; } if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) { @@ -171,7 +171,7 @@ PHP_FUNCTION(unlink) } convert_to_string_ex(filename); - if (PG(safe_mode) && !php_checkuid((*filename)->value.str.val, 2)) { + if (PG(safe_mode) && !php_checkuid((*filename)->value.str.val, NULL, 2)) { RETURN_FALSE; } -- cgit v1.2.1