diff options
author | Matthias Lederhofer <matled@gmx.net> | 2006-09-17 13:52:45 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-17 15:10:23 -0700 |
commit | ac8e3f2bb8a790ca7810df18c3282d07e84ae345 (patch) | |
tree | 826a785311144adec1f1a6e0b7d3c6142a42fad0 /gitweb | |
parent | 02ac04fc9feacc0174fcbddba6dc8c098c315b13 (diff) | |
download | git-ac8e3f2bb8a790ca7810df18c3282d07e84ae345.tar.gz git-ac8e3f2bb8a790ca7810df18c3282d07e84ae345.tar.xz |
gitweb fix validating pg (page) parameter
Currently it is possible to give any string ending with a number as
page. -1 for example is quite bad (error log shows probably 100
warnings).
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 0fb86385c..c77270c7c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -256,7 +256,7 @@ if (defined $hash_parent_base) { our $page = $cgi->param('pg'); if (defined $page) { - if ($page =~ m/[^0-9]$/) { + if ($page =~ m/[^0-9]/) { die_error(undef, "Invalid page parameter"); } } |