]> wagner.pp.ru Git - oss/stilllife.git/commitdiff
Исправил регэксп
authorsafir <safir>
Tue, 25 Mar 2008 12:13:48 +0000 (12:13 +0000)
committersafir <safir>
Tue, 25 Mar 2008 12:13:48 +0000 (12:13 +0000)
templates/basicset/page.js

index d4fad44c1071be3d76b7c7937f84dc7486f38f76..00aeebf6ff38e74c1adb0f958f39b3cadec85ef2 100644 (file)
@@ -75,7 +75,7 @@ function getUserRights(user) {
     var hr=location.href.match(/^\w+:\/\/[^/]*\/([^?#]+)/);
     if(hr==null) return status;
     var depth=hr[1].split(/\//).length;
-    var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*\n"+user+"\n","m");
+    var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*[^[]+\n"+user+"\n","m");
     for(var path="",i=0;i<depth;path+="../",i++) {
        xhr.open(GET, path+"perms.txt",false);
        xhr.send("");