From: pk910 Date: Fri, 31 Aug 2012 18:01:58 +0000 (+0200) Subject: allow - & _ in branch names X-Git-Url: https://git.stricted.de/?p=gitweb.git;a=commitdiff_plain;h=f2505f73397fe0b42f70619752fb1f55e301a00f allow - & _ in branch names --- diff --git a/git_graph.php b/git_graph.php index 1beae8c..fa8d1bd 100644 --- a/git_graph.php +++ b/git_graph.php @@ -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");