show up where? it should send " to your browser, as that is the html entity for a "
but if you see the text " in your browser something is wrong.. browser/version?
ziddey
Joined: 2004-11-01
Posts: 52
Posted: Mon, 2005-02-07 14:35
mindless wrote:
show up where? it should send & to your browser, as that is the html entity for a "
but if you see the text & in your browser something is wrong.. browser/version?
I understand that & is html for a quote symbol but it's actually showing the code instead of the quote. ie6, firefox1, everything.
ziddey
Joined: 2004-11-01
Posts: 52
Posted: Mon, 2005-02-07 14:41
crap, i didnt notice that where i write & quot ;, it only shows up as &.
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-02-07 16:03
ziddey wrote:
(and i assume everywhere else)
can you test that assumption?
bharat
Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-02-09 04:39
Yes, this is the case. We escape the following characters inthe database:
Quote:
" ' & < >
This is a security precaution; we do it so that these characters don't accidentally get interpreted as raw HTML and therefore allow your browser to be tricked into XSS exploits.
Is this causing you a problem? Or is this merely an observation? Thanks.
Posts: 8601
show up where? it should send &quot; to your browser, as that is the html entity for a "
but if you see the text &quot; in your browser something is wrong.. browser/version?
Posts: 52
I understand that & is html for a quote symbol but it's actually showing the code instead of the quote. ie6, firefox1, everything.
Posts: 52
crap, i didnt notice that where i write & quot ;, it only shows up as &.
Posts: 8601
can you test that assumption?
Posts: 7994
Yes, this is the case. We escape the following characters inthe database:
This is a security precaution; we do it so that these characters don't accidentally get interpreted as raw HTML and therefore allow your browser to be tricked into XSS exploits.
Is this causing you a problem? Or is this merely an observation? Thanks.