Browse Source

checkurl regex

Sniperovitch 8 years ago
parent
commit
2619091a88
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Bartender.pm

+ 1 - 1
lib/Bartender.pm

@@ -21,7 +21,7 @@ get '/shake' => sub {
     }
     }
 
 
     for($opt_base, $opt_garde) {
     for($opt_base, $opt_garde) {
-        if(not m{^https?://}i ) {
+        if(not m/^https?:\/\/pad\.exegetes\.eu\.org\/p\/[.a-z0-9A-Z\$\/-]+$/i ) {
             $error->{message} .= qq{"$_" est incorrect.};
             $error->{message} .= qq{"$_" est incorrect.};
         }
         }
     }
     }