[Jifty-commit] r4910 - in jifty/trunk: lib/Jifty/Plugin/REST
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jan 23 14:53:39 EST 2008
Author: sartak
Date: Wed Jan 23 14:53:38 2008
New Revision: 4910
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
Log:
r50690 at onn: sartak | 2008-01-23 14:53:24 -0500
REST: Qualifying the entire model/action name will fail because it will have no leading ::
Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm Wed Jan 23 14:53:38 2008
@@ -399,10 +399,10 @@
return $name if $name->isa($base);
- $name =~ s/\W+/\\W+/g;
+ my $re = qr/(?:^|::)\Q$name\E$/i;
foreach my $cls (@_) {
- return $cls if $cls =~ /::$name$/i;
+ return $cls if $cls =~ $re;
}
abort(404);
More information about the Jifty-commit
mailing list