fixed the url parser so all urlhandlers have ^ tacked to the start
[glcas.git] / libglcas / urlparser.php
index ab7e69c..d85692d 100644 (file)
@@ -34,7 +34,7 @@ class GLCASUrlParser {
                                        error_log("catchall set to $val");
                                } else if($key != "/") {
                                        // now the rest
-                                       if(preg_match("/$key/", $url)) {
+                                       if(preg_match("/^$key/", $url)) {
                                                error_log("matched $url to $key and $val");
                                                return new $val($this->config);
                                        }