wez             Sat Sep  7 14:59:19 2002 EDT

  Modified files:              
    /php4/main  user_streams.c 
  Log:
  Tag user streams as being URLs, so that safe mode restrictions
  will come into play.
  
  
Index: php4/main/user_streams.c
diff -u php4/main/user_streams.c:1.17 php4/main/user_streams.c:1.18
--- php4/main/user_streams.c:1.17       Sun Aug 25 14:45:02 2002
+++ php4/main/user_streams.c    Sat Sep  7 14:59:18 2002
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: user_streams.c,v 1.17 2002/08/25 18:45:02 helly Exp $ */
+/* $Id: user_streams.c,v 1.18 2002/09/07 18:59:18 wez Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -218,6 +218,7 @@
        uwrap->classname = estrndup(classname, classname_len);
        uwrap->wrapper.wops = &user_stream_wops;
        uwrap->wrapper.abstract = uwrap;
+       uwrap->wrapper.is_url = 1; /* allow safe_mode to disallow this wrapper if 
+enabled */
 
        zend_str_tolower(uwrap->classname, classname_len);
        rsrc_id = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to