From 0ab794f67b5490c5a055831a62bc7f65161c9340 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Sun, 14 Apr 2013 15:31:29 +0200 Subject: [PATCH] Allow dots in filenames --- h5p.classes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index f4b1a21..b1019d2 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -260,10 +260,10 @@ class H5PValidator { 'type' => '/^(css|js)$/', ), 'preloadedJs' => array( - 'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.js$/i', + 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.js$/i', ), 'preloadedCss' => array( - 'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.css$/i', + 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.css$/i', ), 'dropLibraryCss' => array( 'machineName' => '/^[\w0-9\-\.]{1,255}$/i',