Fixed error in URL encoding, according to the RFC3986, space should not be encoded with '+' but with percent encoding.

This commit is contained in:
Jocelyn Fiat
2012-04-30 15:53:44 +02:00
parent 07b3eddefe
commit e304113984

View File

@@ -54,8 +54,6 @@ feature -- Encoder
'.', '-', '~', '_' '.', '-', '~', '_'
then then
Result.extend (c) Result.extend (c)
when ' ' then
Result.extend ('+')
else else
Result.append (url_encoded_char (uc)) Result.append (url_encoded_char (uc))
end end
@@ -89,8 +87,6 @@ feature -- Encoder
'.', '-', '~', '_' '.', '-', '~', '_'
then then
s8.extend (c) s8.extend (c)
when ' ' then
s8.extend ('+')
else else
if a_ignore.has (c) then if a_ignore.has (c) then
s8.extend (c) s8.extend (c)