Ticket #2138: PHP_Win_folder_creation.patch

File PHP_Win_folder_creation.patch, 548 bytes (added by Daniel Plücken, 16 years ago)
  • editor/filemanager/browser/default/connectors/php/io.php

    editor/filemanager/browser/default/connectors/php/io.php
     
    7878            return $sErrorMsg ;
    7979    }
    8080
    81     if ( !preg_match( "!^(/?[-0-9_a-z.]+)+/?$!i", $folderPath ) )
     81    if ( !preg_match( "!^([a-z]:)?(/?[-0-9_a-z.]+)+/?$!i", $folderPath ) )
    8282       return "Invalid argument";
    8383    else
    8484    if ( !file_exists( $folderPath ) )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy