ajax get_styles is now case insensitive with the theme_id
authorDan Fuhry <dan@enanocms.org>
Thu, 10 Feb 2011 21:52:54 -0500
changeset 1340 d1d64b373878
parent 1339 03c5b9e8e02a
child 1341 90e2064c8ea2
ajax get_styles is now case insensitive with the theme_id
ajax.php
--- a/ajax.php	Thu Feb 10 01:34:55 2011 -0500
+++ b/ajax.php	Thu Feb 10 21:52:54 2011 -0500
@@ -583,7 +583,7 @@
 		
 		break;
 	case "get_styles":
-		if ( !preg_match('/^[a-z0-9_-]+$/', $_GET['theme_id']) )
+		if ( !preg_match('/^[A-z0-9_-]+$/', $_GET['theme_id']) )
 			die(enano_json_encode(array()));
 		
 		$theme_id = $_GET['theme_id'];