http://localhost/foo/profile/%26lt%3Bi%26gt%3Bmarco%26lt%3B%2Fi%26gt%3B
The above code gives me 404 Error , URL code: urlencode(htmlspecialchars($foo)); as for $foo : <i>badhtml</i>
The URL works fine when there is no need to encode, for example. marco .
Thanks. = D
Update: I have to grab a segment in the encoded part of the uri, so 404 should not appear.
There is no document there, marco is just the line I need to get this information from db. If the user does not exist, he will not throw this ugly error.
It is not clear what is wrong: I found out that if I used <i>badhtml<i> it works fine, but <i>badhtml</i> will not, what am I doing to support / in <i> ?
He probably considers the request http://localhost/foo/profile/<i>badhtml<**/**i>
source share