[Bug debuginfod/28034] client-side %-escape url characters

Noah Sanci nsanci@redhat.com
Thu Aug 26 19:27:45 GMT 2021


When requesting some source files, some URL-inconvenient chars
sometimes pop up.  Example from f33 libstdc++:
As this URL is passed into debuginfod's handler_cb, it appears that the
+ signs are helpfully unescaped to spaces by libmicrohttpd, which
'course breaks everything.
In order to ensure the server properly parses urls such as this one,
%-escape characters on the client side so that the correct url
is preserved and properly processed on the server side.

This patch preserves '/'s in the url. Please find the patch attached.

-Noah Sanci
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debuginfod-PR28034-client-side-escape-url-characters.patch
Type: text/x-patch
Size: 3869 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/elfutils-devel/attachments/20210826/8862197a/attachment.bin>

More information about the Elfutils-devel mailing list