Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Quote non-displayable characters in hex, not octal
[gitweb.git]
/
gitweb
/
gitweb.perl
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 18e70a366333fffbadd37a7fbe509b4c33f9421f..eb2943a530189325407d83d12f22ca3494524866 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-775,7
+775,7
@@
sub quot_cec {
);
my $chr = ( (exists $es{$cntrl})
? $es{$cntrl}
- : sprintf('\%
03o
', ord($cntrl)) );
+ : sprintf('\%
2x
', ord($cntrl)) );
if ($opts{-nohtml}) {
return $chr;
} else {