Ticket #2138: PHP_Win_folder_creation.patch
File PHP_Win_folder_creation.patch, 548 bytes (added by , 16 years ago) |
---|
-
editor/filemanager/browser/default/connectors/php/io.php
editor/filemanager/browser/default/connectors/php/io.php
78 78 return $sErrorMsg ; 79 79 } 80 80 81 if ( !preg_match( "!^( /?[-0-9_a-z.]+)+/?$!i", $folderPath ) )81 if ( !preg_match( "!^([a-z]:)?(/?[-0-9_a-z.]+)+/?$!i", $folderPath ) ) 82 82 return "Invalid argument"; 83 83 else 84 84 if ( !file_exists( $folderPath ) )