Parcourir la source

verif les url

Sniperovitch il y a 8 ans
Parent
commit
db2cf857b8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/Bartender.pm

+ 1 - 1
lib/Bartender.pm

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