login
Header Space

 
 

[PATCH 2/n] gitweb: Use '&iquot;' instead of '?' in esc_path

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Monday, October 30, 2006 - 2:59 pm

Use "&iquot;" Latin 1 entity ("&#191;" -- inverted question mark =
turned question mark, U+00BF ISOnum) instead '?' as replacements for
control characters and other undisplayable characters.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index a15e916..edca27d 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -567,7 +567,7 @@ sub esc_html {
 sub esc_path {
 	my $str = shift;
 	$str = esc_html($str);
-	$str =~ s/[[:cntrl:]\a\b\e\f\n\r\t\011]/?/g; # like --hide-control-chars in ls
+	$str =~ s/[[:cntrl:]\a\b\e\f\n\r\t\011]/&iquest;/g; # like --hide-control-chars in ls
 	return $str;
 }
 
-- 
1.4.3.3

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/n] [take 3] gitweb: New improved patchset view, Jakub Narebski, (Tue Oct 31, 10:22 am)
[PATCH 5/10] gitweb: New improved patchset view, Jakub Narebski, (Fri Nov 3, 6:26 am)
[PATCH 2/n] gitweb: Use '&iquot;' instead of '?' in esc_path, Jakub Narebski, (Mon Oct 30, 2:59 pm)
speck-geostationary