Pull request: Fix escaping of paths with spaces

Jonathon Mah ME at JONATHONMAH.COM
Sun Apr 10 13:17:03 CEST 2011


Hi folks,

I have a fairly important commit to fix the escaping of tree paths with spaces. Currently, a tree link to a path with a space contains a NUL due to a string overrun! I've changed html_url_path to escape spaces as %20, and left html_url_arg escaping them as +. Someone more experienced needs to check this over.

Commit:
<https://github.com/jmah/cgit/commit/ac88deacf1eed402a0cbf88956012a892b4003ab>
Branch:
https://github.com/jmah/cgit/commits/fix-escape




Jonathon Mah
me at JonathonMah.com






More information about the CGit mailing list