1
uberrookie
db text getting sanitized
  • 2011/5/1 18:28

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


I'm getting a text from db by using:
$result $this->getAll($criteria,'',false,false);

Lets say the text is :-D

$result[0]['message'] = <img class="imgsmile" src="http://mysite/uploads/smilies/smil3dbd4d4e4c4f2.gif" alt="" />


Why does my text (:-D) get sanitized to an image and how do I prevent this?

2
zyspec
Re: db text getting sanitized
  • 2011/5/2 3:48

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


More than likely you need to look at the actual data in the dB table. I suspect that it's being converted BEFORE it's being stored in the database, not while you're retrieving it.

3
uberrookie
Re: db text getting sanitized

The text in the db is raw -> :-D

4
zyspec
Re: db text getting sanitized
  • 2011/5/2 14:28

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Interesting. Using the XoopsPersistableObjectHandler class with the Criteria (or CriteriaCompo) class doesn't do this. We'd need to see more of the class(es) you're using to see where this is happening. Looks to me like the module textsanitizer, smiley method is being called from somewhere in the code.

Login

Who's Online

123 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 123


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits