Quantcast

Jump to content

» «
Photo

out of control message and color tags

1 reply to this topic
caz95
  • caz95

    Common Criminal

  • Members
  • Joined: 29 Aug 2014
  • United-Kingdom

#1

Posted 12 October 2016 - 06:22 PM

well im playing a game on steam and the chat from a code perspective is a f*****g mess.

 

when you type and hit enter the main codes that occer are

< color = #FFFFFFFF > < / color >

and

< message > < / message >

(spaes not included) its any 2 of the 4.

 

any ideas on how to cancel them out? code used is either HTML or XML


K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Best Poster [Technology / Programming] 2016
    Best Poster [Programming] 2015
    Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#2

Posted 16 October 2016 - 01:02 PM

Unless chat is written by idiots, messages will be getting scraped to avoid injection. Either by parsing for tags or escaping. It's the same reason that <em>this text isn't emphasized</em>. But this text is. If you look at HTML for this page, you'll see that the text containing emphasis tags I've entered get escaped, while the italics bbcodes turned into real <em> tags. This is done primarily to prevent someone from doing something really ugly, like running JavaScript to steal your personal information. And for that reason, it tends to be intentionally hard to defeat. Not that people don't find loopholes occasionally.

Unless chat in the game you're looking at has special codes for modifying the style, or if developers really were idiots and left this unguarded, I probably wouldn't bother trying to get around it.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users