diff options
author | Jakub Narebski <jnareb@gmail.com> | 2012-02-12 16:21:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-12 22:11:31 -0800 |
commit | f4212089c27e74689c33ec455f1c85470b7b8292 (patch) | |
tree | 3e4e8691e7e071c7847ef7ae6ba14e2943f41a5f /gitweb | |
parent | gitweb: Make project search respect project_filter (diff) | |
download | tgif-f4212089c27e74689c33ec455f1c85470b7b8292.tar.xz |
gitweb: Harden and improve $project_filter page title
Commit 19d2d23 (gitweb: add project_filter to limit project list
to a subdirectory, 2012-01-30) added also support for displaying
$project_filter, if present, in page title.
Unfortunately it forgot to treat $project_filter as path, and escape
it using esc_path(), like it is done for $filename.
Also, it was not obvious that "$site_name - $project_filter" is about
project filtering: use "$site_name - projects in '$project_filter'".
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 f211594c45..877193f282 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3742,7 +3742,7 @@ sub get_page_title { unless (defined $project) { if (defined $project_filter) { - $title .= " - " . to_utf8($project_filter); + $title .= " - projects in '" . esc_path($project_filter) . "'"; } return $title; } |