Skip to content

Better unquoting of git quoted filenames; esc_path to escape pathnames for display

Jakub Narebski git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gitweb: Better git-unquoting and gitweb-quoting of pathnamesgitweb/gitweb.perl+53 -190 replies
1/2gitweb: New improved patchset viewgitweb/gitweb.css gitweb/gitweb.perl+173 -760 replies
1/2gitweb: New improved patchset viewgitweb/gitweb.css gitweb/gitweb.perl+80 -133 replies
2/2gitweb: Use character or octal escape codes (and add span.cntrl) in esc_pathgitweb/gitweb.css gitweb/gitweb.perl+31 -13 replies
2/2gitweb: New improved formatting of chunk header in diffgitweb/gitweb.css gitweb/gitweb.perl+30 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Better unquoting of git quoted filenames; esc_path to escape pathnames for display

This series fixes unquote so that it can deal with alphabetic escape sequences like '\n' and '\t', and escaped literal characters like '\"' and '\\', and adds esc_path do deal with the fact that unquoted filenames can now contain control characters, not suitable for HTML. Previous version of unquote was broken in that it did only octal escape sequence unquoting, and could leave filename only partially unquoted.

First patch adds minimal esc_path, second improves esc_path to final version.

Shortlog:
[PATCH 1/2] gitweb: Better git-unquoting and gitweb-quoting of pathnames [PATCH 2/2] gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path

Diffstat:

 gitweb/gitweb.css  |    7 ++++
 gitweb/gitweb.perl |   95 +++++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 83 insertions(+), 19 deletions(-)
Signature · 1 line
Jakub Narebski