Fixed error in URL encoding, according to the RFC3986, space should not be encoded with '+' but with percent encoding.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user