summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-10-22 16:06:38 +0200
committerYorhel <git@yorhel.nl>2008-10-22 16:06:38 +0200
commitd9cff4fe5e03034ea7321bb5b7d723e45ad2967d (patch)
treee6bbc228be7b66895414c4ca936f91a75901dfc6
parent5398c3c3640857252be6e33b1c61d51a273dc133 (diff)
Registered regexes do have to match the full URI
-rw-r--r--lib/YAWF.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/YAWF.pm b/lib/YAWF.pm
index e97810d..5c5116a 100644
--- a/lib/YAWF.pm
+++ b/lib/YAWF.pm
@@ -140,7 +140,7 @@ sub handle_request {
study $loc;
my $han = $self->{_YAWF}{error_404_handler};
for (@handlers ? 0..$#handlers/2 : ()) {
- if($loc =~ /$handlers[$_*2]/) {
+ if($loc =~ /^$handlers[$_*2]$/) {
$han = $handlers[$_*2+1];
last;
}