[Jifty-commit] jifty branch, master, updated. jifty-1.10228-26-gbb9b415

Jifty commits jifty-commit at lists.jifty.org
Tue May 17 23:56:27 EDT 2011


The branch, master has been updated
       via  bb9b41506b776128e137ed1bf3802822ed389dff (commit)
      from  08c3ca6a7bec943086d7c6b4da3e6c81c33ac21e (commit)

Summary of changes:
 lib/Jifty/API.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit bb9b41506b776128e137ed1bf3802822ed389dff
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed May 18 11:44:05 2011 +0800

    ^ needs to be escaped

diff --git a/lib/Jifty/API.pm b/lib/Jifty/API.pm
index 4d30a17..557d00d 100644
--- a/lib/Jifty/API.pm
+++ b/lib/Jifty/API.pm
@@ -270,7 +270,7 @@ sub restrict {
         die "For security reasons, Jifty won't let you allow all actions"
             if $polarity eq "allow"
             and ref $restriction
-            and $restriction =~ /^\(\?^?[-xismadlu]*:\^?\.\*\$?\)$/;
+            and $restriction =~ /^\(\?\^?[-xismadlu]*:\^?\.\*\$?\)$/;
 
         # Fully qualify it if it's a string
         $restriction = $self->qualify($restriction)

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list