Author Topic: Character Slashifying Problem  (Read 798 times)

spyke01

  • Hydlaa Resident
  • *
  • Posts: 90
  • <? echo "oops"; ?>
    • View Profile
    • Fast Track Sites
Character Slashifying Problem
« on: July 03, 2006, 05:48:19 am »
Dont know if anyone has posted about this yet, but looks like your SMF is using the addslashes() security feature. The only problem, is that the slashes arent striped when they are printed out, and theres also a better way to do this, you can use the htmlallentities() and mysql_real_escape() to fix this problem, if you want a full security function, i can give you guys mine to use.

For anyone who doesnt know what the addslashes() function does, here it is:

A normal &quot; is displayed as /"
A normal &squot; is displayed as /'

It also affects other items as well

EDIT: Actually only some posts are this way, so this may have been fixed already, sorry if its a repost



neko kyouran

  • Guest
Re: Character Slashifying Problem
« Reply #1 on: July 03, 2006, 06:45:35 am »
It happened becuase of the migration from the old forums to this new one.  Something about the script that was used to convert the old DB to new.  But yes, there isn't that problem with any posts on the new forum now.

spyke01

  • Hydlaa Resident
  • *
  • Posts: 90
  • <? echo "oops"; ?>
    • View Profile
    • Fast Track Sites
Re: Character Slashifying Problem
« Reply #2 on: July 03, 2006, 07:00:51 am »
ok cool, thanks neko kyouran