X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/userv-utils/blobdiff_plain/411c075bc8493bc35e479421d647ae746d62a368..fbde0914d3e4fc184ac396dbb35ad6f77527b535:/git-daemon/git-daemon-vhosts.pl diff --git a/git-daemon/git-daemon-vhosts.pl b/git-daemon/git-daemon-vhosts.pl index 4c6fb62..2046f9f 100644 --- a/git-daemon/git-daemon-vhosts.pl +++ b/git-daemon/git-daemon-vhosts.pl @@ -8,6 +8,10 @@ # git://HOSTNAME/REPO.git # git://HOSTNAME/~TILDE/REPO.git +$HOSTNAME = qr{[-.0-9a-z]+}; +$TILDE = qr{[0-9a-z]+}; +$REPO = qr{[-+._0-9A-Za-z]+}; + # The vhost_default_user hash specifies what user handles git requests # for each virtual host, if the URL does not have a tilde part, or if # the virtual host does not appear in the vhost_user_from_tilde hash.