Updated code regarding to string 32 vs string 8.
This commit is contained in:
@@ -54,7 +54,7 @@ feature -- Execution
|
||||
if attached {WSF_STRING} req.item ("user") as u then
|
||||
--| If yes, say hello world #name
|
||||
|
||||
l_user_name := (create {HTML_ENCODER}).decoded_string (u.value.to_string_8)
|
||||
l_user_name := (create {HTML_ENCODER}).general_decoded_string (u.value)
|
||||
|
||||
s := "<p>Hello " + mesg.html_encoded_string (l_user_name) + "!</p>"
|
||||
s.append ("Display a <a href=%"/users/" + u.url_encoded_value + "/message/%">message</a></p>")
|
||||
|
||||
@@ -86,7 +86,7 @@ feature -- Access
|
||||
html_decoded_string (v: READABLE_STRING_32): READABLE_STRING_32
|
||||
do
|
||||
if v.is_valid_as_string_8 then
|
||||
Result := (create {HTML_ENCODER}).decoded_string (v.to_string_8)
|
||||
Result := (create {HTML_ENCODER}).general_decoded_string (v)
|
||||
else
|
||||
Result := v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user