Fix repositories not being properly escaped
In gitolite configuration variable which controls commit access must not include dash.
This commit is contained in:
@@ -11,7 +11,7 @@ require_once $root.'/scripts/__init_script__.php';
|
|||||||
// utilities instead.
|
// utilities instead.
|
||||||
|
|
||||||
function escape_name($name) {
|
function escape_name($name) {
|
||||||
return preg_replace('/[^A-Za-z0-9\-]/', '_', $name);
|
return preg_replace('/[^A-Za-z0-9]/', '_', $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
function startswith($string, $prefix) {
|
function startswith($string, $prefix) {
|
||||||
|
Reference in New Issue
Block a user