]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15913: Smartpix fails if themes or images have upper-case names
authorsam_marshall <sam_marshall>
Wed, 4 Mar 2009 11:55:08 +0000 (11:55 +0000)
committersam_marshall <sam_marshall>
Wed, 4 Mar 2009 11:55:08 +0000 (11:55 +0000)
pix/smartpix.php

index cb8c9b033244a1dbf631e56d8f769a5804e58927..e44628de5ac134102eb327744137aa3820f7612f 100644 (file)
@@ -111,7 +111,7 @@ if(!(isset($dirroot) && isset($dataroot))) {
 // Split path - starts with theme name, then actual image path inside pix
 $path=get_file_argument_limited('smartpix.php');
 $match=array();
-if(!preg_match('|^/([a-z0-9_\-.]+)/([a-z0-9/_\-.]+)$|',$path,$match)) {
+if(!preg_match('|^/([a-zA-Z0-9_\-.]+)/([a-zA-Z0-9/_\-.]+)$|',$path,$match)) {
     error('Unexpected request format');
 }
 list($junk,$theme,$path)=$match;