Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Use capturing parentheses only when you intend to capture
[gitweb.git]
/
gitweb
/
gitweb.perl
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index beb79eebd5c1bba2fdb57445c0f674e277524a6e..097bd18be5de0b52eed7c879e6bdfb3968143712 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-828,7
+828,7
@@
sub evaluate_path_info {
if (!defined($actions{$action})) {
die_error(400, "Unknown action");
}
-if ($action !~ m/^(opml|project_list|project_index)$/ &&
+if ($action !~ m/^(
?:
opml|project_list|project_index)$/ &&
!$project) {
die_error(400, "Project needed");
}