author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 15 May 2007 23:56:10 +0000 (01:56 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 16 May 2007 19:40:06 +0000 (12:40 -0700) | ||
commit | 7e431ef9ab933d7ff899a999e40627ab49774f3a | |
tree | a43fb4e10d1a42da6046c1dc03cb7309d350880a | tree | snapshot |
parent | b211c320eb5d753a7a44a03eccb9a15cfbcc563b | commit | diff |
gitweb: Separate search regexp from search text
Separate search text, which is saved in $searchtext global variable,
and is used in links, as default value for the textfield in search
form, and for pickaxe search, from search regexp, which is saved in
$search_regexp global variable, and is used as parameter to --grep,
--committer or --author options to git-rev-list, and for searching
commit body in gitweb. For now $search_regexp is unconditionallt
equal to quotemeta($searchtext), meaning that we always search for
fixed string.
This fixes bug where 'next page' links for 'search' view didn't work
for searchtext containing quotable characters, like `@'.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Separate search text, which is saved in $searchtext global variable,
and is used in links, as default value for the textfield in search
form, and for pickaxe search, from search regexp, which is saved in
$search_regexp global variable, and is used as parameter to --grep,
--committer or --author options to git-rev-list, and for searching
commit body in gitweb. For now $search_regexp is unconditionallt
equal to quotemeta($searchtext), meaning that we always search for
fixed string.
This fixes bug where 'next page' links for 'search' view didn't work
for searchtext containing quotable characters, like `@'.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |