Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Topic titles missing
#21
Aah crap... there's always something I'm forgetting... :lol:

wc: I take it you just ran the title text through htmlentities, right?
Reply
#22
No I simply did a replace of quote to the html equvialent.
Reply
#23
OK. When I get around to doing the javascript version, I'll add it in Smile
Reply
#24
you know, when adding things like that, without placing a htmlentites or similar, it is very easy to write exploits, for example, if I had known about that bug before hand, i could have forwarded the entire General forum to a complete new site Wink You have to be careful about security loop holes.

Whitetiger showed me the importance of that a while ago.
Reply
#25
dark: There shouldn't have been any loophole/bug as html is turned off generally on the forum here. But I've used htmlentities now anyway ;-) Either way if theres probs let us know.
Reply
#26
html may be turned off in the posts, but can it not still be run from a tooltip, like that? I mean if you hadnt put in the fix, would this not work:

if i started the post with:

">Hijacked Thread name here</a>

surely that would actually work, no?
Reply
#27
as soon as you post that text, it gets run thru the php function htmlentities, which makes " to &quot; < to &lt; aso, therefore the browser interprets them as stuff to print on screen, and not anything to parse.
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Reply
#28
oh, so you mean it gets stored after htmlentites is run? Right.. that works i guess =) I was under the impression that html entities was run as the page was processed, which would explain why the quote mark made a mess of the tooltip, because wildcard might have forgotten to put Htmlentites for the tooltip.
Reply
#29
Not knowing phpBB/php very well I assume that the way phpBB checks/changes html to text doesn't include quotes, it may use html enities and leave quotes, I'm not sure.
Reply
#30
Quote:Not knowing phpBB/php very well I assume that the way phpBB checks/changes html to text doesn't include quotes, it may use html enities and leave quotes, I'm not sure.

That would explain the whole thing then. ok dokes!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)