[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12244: [patch] URI encoding bugs
From: |
Ian Price |
Subject: |
bug#12244: [patch] URI encoding bugs |
Date: |
Mon, 20 Aug 2012 23:19:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hi,
There are two bugs in the current uri-encode procedure in (web
uri).
Firstly, if you have an octet less than 16 it only gets encoded to %
HEXDIGIT instead of % HEXDIGIT HEXDIGIT.
scheme@(guile−user)> (uri-encode "foo\nbar")
$30 = "foo%abar"
Secondly, if you have a string with no unreserved characters, nothing
gets encoded.
scheme@(guile−user)> (uri-encode "<>\\^")
$31 = "<>\\∧"
scheme@(guile−user)> (uri-encode "<>\\^a")
$32 = "%3c%3e%5c%5ea"
Patches attached. Cheers,
--
Ian Price -- shift-reset.com
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
0001-Fix-uri-encoding-for-octets-0-15.patch
Description: octets 0-15 patch
0002-Fix-uri-encoding-for-strings-with-no-unreserved-char.patch
Description: no unreserved chars patch
- bug#12244: [patch] URI encoding bugs,
Ian Price <=