Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-07-2013, 09:28 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 132,099
Tequila is on a distinguished road
Default

A quick google search pulled this up:
http://www.tinymce.com/forum/viewtopic.php?id=12092

Quote:
This is a bug but i created some cheat in php... Basically, /r/n is "new line" in html that can be read by tinymce, and some hosting company uses "addslashes" function to resolve sql injection...
In order to remove those slashes, you need to use "stripslashes", but it will also remove the slashes in "/r/n" so it will produce the string "rn". Therefore, that "rn" will appear as text in tinymce... (i used this also in <img> slashes problem)
To resolve that, you just have to add "replace_str" before sending it to database (replace 'rn' with '')....
like this >>>

stripslashes(str_replace('\r\n', '', mysql_real_escape_string($post['description'])))


hope this help... it works with me....
Last edited by rexjaysoncortez (2010-12-19 16:31:42)
Just have to add that code in. I'll let Hoffie know that this bug is still going...
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Box in Pages? Clessidra Questions and Supports 5 06-13-2013 06:51 PM
Text getting deleted Empress_Swanbottom Questions and Supports 4 02-15-2013 10:40 PM
Pet and Item boxes Question Nieth Questions and Supports 4 12-14-2012 08:33 PM
Change adopt.php text? Skullette Questions and Supports 8 06-14-2010 07:56 AM
Reseting text 12345 Questions and Supports 4 03-04-2009 11:26 PM


All times are GMT -5. The time now is 08:50 PM.

Currently Active Users: 1942 (0 members and 1942 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636