diff options
author | Anthon Pang <apang@softwaredevelopment.ca> | 2013-04-11 02:47:29 +0400 |
---|---|---|
committer | Anthon Pang <apang@softwaredevelopment.ca> | 2013-04-11 02:47:49 +0400 |
commit | 72c2839e11d488f65ecac5114c9a6584a34aaf7b (patch) | |
tree | 2d089be49e5d87da3e58e34f7e295fcd2ab9f486 /core/Loader.php | |
parent | 1be110e66bd61a61c8e40ccfeff3474201142101 (diff) |
Loader should not match "XYZ\n"
Diffstat (limited to 'core/Loader.php')
-rw-r--r-- | core/Loader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Loader.php b/core/Loader.php index 271e20c1a3..d46a57b01e 100644 --- a/core/Loader.php +++ b/core/Loader.php @@ -28,7 +28,7 @@ class Piwik_Loader */ protected static function getClassFileName($class) { - if (!preg_match("/^[A-Za-z0-9_]+$/", $class)) { + if (!preg_match("/^[A-Za-z0-9_]+$/D", $class)) { throw new Exception("Invalid class name \"$class\"."); } |