[MPlayer-dev-eng] [PATCH] Fix for incorrect URL encoding

Ilya Konstantinov mplayer-dev-eng at future.shiny.co.il
Fri Apr 18 03:04:38 CEST 2003


There's a trivial bug in the URL encoding function url_escape_string in 
libmpdemux. When it finds an octet which needs to be escaped by using the hex 
form %xx (where xx is the octet in hex notation), it converts digits below 10 
correctly but converts 10 to 15 as A+i (where i is 10 to 15) instead of 
A+i-10. This patch does exactly that. This makes some URLs work (for which 
the HTTP server would otherwise correctly return 400 Bad Request).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-url-escaping.patch
Type: text/x-diff
Size: 631 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030418/55f5abe6/attachment.patch>


More information about the MPlayer-dev-eng mailing list