gitweb: avoid double / in search form action link
commit3d223f7f99b984126bacc076df785ae2e07539b7
authorTony Finch <dot@dotat.at>
Wed, 8 Apr 2015 13:49:04 +0000 (8 14:49 +0100)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 8 Apr 2015 23:57:22 +0000 (8 16:57 -0700)
treecea3ad97fbfd834eb02b07f4b8fa581bd6c2439c
parent7abb5da8e888f7562e10e7e07625849f5bfd3f30
gitweb: avoid double / in search form action link

The in-project search form needs to duplicate some of the logic of
the href() subroutine, because the parameters need to be encoded
in the form rather than in the URL.  However it failed to correctly
append the project PATH_INFO in cases when there is a trailing slash
on gitweb's self-referential URL, and failed to correctly follow
PATH_INFO escaping rules.

This change makes the form action URL consistent with the URL
generated by href().

Signed-off-by: Tony Finch <dot@dotat.at>
gitweb/gitweb.perl