If a player contains < in their name it’ll break this page through an xml “syntax” error:http://www.graal.in/xml.php?get=servers
As found on cow’s server, there lies the culperate…
Surely this is an easy fix, and I use that xml feed, so it’s not like such effort is a total waste.
hosler
July 27, 2013, 6:20pm
2
why would an xml parser look for only ‘<’ and not a whole tag?
Because even if it was looking for a whole tag, the name would pair up with the original closing character.
“<gay name ”
But that’s only a guess to be honest… Maybe there wasn’t anything for quotes >_>
Edit:
Maybe if you just wrapped names in quotes automatically?
hosler
July 27, 2013, 7:41pm
6
Cant. Im a sloppy coder.
If cadavre shows me where it’s at ill fix it.
Joey
July 27, 2013, 8:58pm
7
I’ll take a wild guess and assume xml.php lol.
hosler
July 27, 2013, 9:36pm
8
I always thought that script published the info, not generated it. But yeah. That is where I’ll start in tracking down the root error because I think cadavre is on another wacky Swedish endeavor.
Joey
July 27, 2013, 9:43pm
9
Just needs to escape the characters, maybe htmlspecialchars might work