logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pecl /htscanner htscanner.c: msg#00139

Subject: cvs: pecl /htscanner htscanner.c
pajoye          Thu Nov 30 02:50:44 2006 UTC

  Modified files:              
    /pecl/htscanner     htscanner.c 
  Log:
  - don't allow safe_mode and open_basedir changes (ilia)
  
  
http://cvs.php.net/viewvc.cgi/pecl/htscanner/htscanner.c?r1=1.1&r2=1.2&diff_format=u
Index: pecl/htscanner/htscanner.c
diff -u pecl/htscanner/htscanner.c:1.1 pecl/htscanner/htscanner.c:1.2
--- pecl/htscanner/htscanner.c:1.1      Thu Nov 30 01:54:09 2006
+++ pecl/htscanner/htscanner.c  Thu Nov 30 02:50:44 2006
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: htscanner.c,v 1.1 2006/11/30 01:54:09 pajoye Exp $ */
+/* $Id: htscanner.c,v 1.2 2006/11/30 02:50:44 pajoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -139,7 +139,9 @@
                if (PG(safe_mode)) {
                        if (!strncmp("max_execution_time", name, 
sizeof("max_execution_time")) ||
                                        !strncmp("memory_limit", name, 
sizeof("memory_limit")) ||
-                                       !strncmp("child_terminate", name, 
sizeof("child_terminate"))) {
+                                       !strncmp("child_terminate", name, 
sizeof("child_terminate")) ||
+                                       !strncmp("open_basedir", name, 
sizeof("open_basedir") ||
+                                       !strncmp("safe_mode", name, 
sizeof("safe_mode")) )) {
                                return;
                        }
                }
@@ -335,7 +337,7 @@
     php_info_print_table_start();
 
     php_info_print_table_row(2, "htscanner support", "enabled");
-    php_info_print_table_row(2, "Extension Version","$Id: htscanner.c,v 1.1 
2006/11/30 01:54:09 pajoye Exp $");
+    php_info_print_table_row(2, "Extension Version","$Id: htscanner.c,v 1.2 
2006/11/30 02:50:44 pajoye Exp $");
     php_info_print_table_row(2, "htaccess version", "0.5.0-dev");
 
     php_info_print_table_end();




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>