]> granicus.if.org Git - php/commitdiff
- Re-added safe mode check
authorFelipe Pena <felipe@php.net>
Thu, 29 Jan 2009 00:15:48 +0000 (00:15 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 29 Jan 2009 00:15:48 +0000 (00:15 +0000)
ext/enchant/enchant.c

index cf239421b4c0302c3c4001b14cf1baa4b2430902..57e7efea3fe2100b12817ff69f43f04ca6842e9e 100755 (executable)
@@ -22,7 +22,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#if PHP_WIN32
+#ifdef PHP_WIN32
 #include <glib/glist.h>
 #include <glib/ghash.h>
 #endif
@@ -437,7 +437,7 @@ PHP_FUNCTION(enchant_broker_request_pwl_dict)
                RETURN_FALSE;
        }
 
-       if (php_check_open_basedir(pwl TSRMLS_CC)) {
+       if ((PG(safe_mode) && (!php_checkuid(pwl, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(pwl TSRMLS_CC)) {
                RETURN_FALSE;
        }