Allow dots in filenames

namespaces
Svein-Tore Griff With 2013-04-14 15:31:29 +02:00
parent 1cb36af66e
commit 0ab794f67b
1 changed files with 2 additions and 2 deletions

View File

@ -260,10 +260,10 @@ class H5PValidator {
'type' => '/^(css|js)$/', 'type' => '/^(css|js)$/',
), ),
'preloadedJs' => array( 'preloadedJs' => array(
'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.js$/i', 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.js$/i',
), ),
'preloadedCss' => array( 'preloadedCss' => array(
'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.css$/i', 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.css$/i',
), ),
'dropLibraryCss' => array( 'dropLibraryCss' => array(
'machineName' => '/^[\w0-9\-\.]{1,255}$/i', 'machineName' => '/^[\w0-9\-\.]{1,255}$/i',