chiark / gitweb /
git-daemon.pl: second iteration based on feedback from Ian.
[userv-utils.git] / git-daemon / git-daemon-vhosts.pl
index 4c6fb62d76d84d950270c3a366fd944cf6e796a4..2046f9f264f62a6c707d437109d346d4adb937e7 100644 (file)
@@ -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.