allow - & _ in branch names
authorpk910 <philipp@zoelle1.de>
Fri, 31 Aug 2012 18:01:58 +0000 (20:01 +0200)
committerpk910 <philipp@zoelle1.de>
Fri, 31 Aug 2012 18:01:58 +0000 (20:01 +0200)
git_graph.php

index 1beae8c0e339f0a217c293edb35345e5720200f5..fa8d1bd31eac2092b9e04bdcd8d88a082210fbdf 100644 (file)
@@ -59,7 +59,7 @@ if(!$project)
     die("ERROR 0x02");
 
 //check other args
-if(!preg_match('#^[a-z0-9/.]*$#i', $_GET['h']))
+if(!preg_match('#^[a-z0-9/.-_]*$#i', $_GET['h']))
     die("ERROR 0x03");
 if(!preg_match('#^[a-z0-9]*$#i', $_GET['c']))
     die("ERROR 0x04");