From 1c8cd9e03fdf6111c1a5c39f8537b3b8f6a53301 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 27 Apr 2007 21:40:17 +0200 Subject: [PATCH] Do not permit 'empty forks' --- cgi/Git/RepoCGI.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/cgi/Git/RepoCGI.pm b/cgi/Git/RepoCGI.pm index 48a245f..6775180 100644 --- a/cgi/Git/RepoCGI.pm +++ b/cgi/Git/RepoCGI.pm @@ -203,6 +203,7 @@ sub valid_proj_name { $_ = $_[0]; (not m#/# or -d proj_get_forkee_path($_)) # will also catch ^/ and (not m#\./#) + and (not m#/$#) and m#^[a-zA-Z0-9+./_-]+$#; } sub valid_user_name { -- 2.11.4.GIT