[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Ubuntu-cy - Ubuntu Linux - Cyprus Local Community Team • View topic - tinyMCE Trouble

tinyMCE Trouble

tinyMCE Trouble

Postby marinos » Wed Jul 14, 2010 8:30 pm

Hi Guys is there anyone who ever use the tinyMCE editor?
I added it on one of my web sites for the CMS section. If you write one paragraph can be added to the database if there are many letters or Copy and paste a text document it shows that is working doesn't throws any error but at the same time it doesn't write anything to the database. Any Ideas?
Everything should be made as simple as possible, but not simpler.
--Albert Einstein--
User avatar
marinos
How much time you spend in here?
 
Posts: 834
Joined: Tue May 20, 2008 2:37 pm
Location: Limassol

Re: tinyMCE Trouble

Postby crypto2600 » Thu Jul 15, 2010 9:41 am

Can you send a link of where you are implementing it so i can check the JS?

Also what language for the back end? PHP/ASP - i've implemented TinyMCE before.
"And on the 7th day God typed :wq and then played Nethack as a Barbarian" -
User avatar
crypto2600
Forum Active member
 
Posts: 134
Joined: Sat Jun 19, 2010 7:59 pm

Re: tinyMCE Trouble

Postby marinos » Thu Jul 15, 2010 11:09 am

Everything should be made as simple as possible, but not simpler.
--Albert Einstein--
User avatar
marinos
How much time you spend in here?
 
Posts: 834
Joined: Tue May 20, 2008 2:37 pm
Location: Limassol

Re: tinyMCE Trouble

Postby crypto2600 » Thu Jul 15, 2010 11:34 am

"And on the 7th day God typed :wq and then played Nethack as a Barbarian" -
User avatar
crypto2600
Forum Active member
 
Posts: 134
Joined: Sat Jun 19, 2010 7:59 pm

Re: tinyMCE Trouble

Postby marinos » Thu Jul 15, 2010 11:51 am

Everything should be made as simple as possible, but not simpler.
--Albert Einstein--
User avatar
marinos
How much time you spend in here?
 
Posts: 834
Joined: Tue May 20, 2008 2:37 pm
Location: Limassol

Re: tinyMCE Trouble

Postby crypto2600 » Thu Jul 15, 2010 11:56 am

"And on the 7th day God typed :wq and then played Nethack as a Barbarian" -
User avatar
crypto2600
Forum Active member
 
Posts: 134
Joined: Sat Jun 19, 2010 7:59 pm

Re: tinyMCE Trouble

Postby crypto2600 » Thu Jul 15, 2010 12:04 pm

Check ALL of your queries across the site to make sure you are adding slashes to quotes, otherwise will get you.

There are many functions that do sanitization.

mysql_real_escape_string is the "proper" way to do it with your code. but both should work equally

Just replace addslashes() with mysql_real_escape_string() in the script.
The latter is context/resource sensitive, so that's all you have to be careful of. If it works with mysql_real_escape_string, then definitely use that. The problem is that you can't call that function before you have initialized a mysql resource. addslashes can be called anytime.

Also make sure you ALWAYS use single quotes instead of double quotes for encapsulating strings in your query to maintain consistency and for sanitization to be fully effective.
"And on the 7th day God typed :wq and then played Nethack as a Barbarian" -
User avatar
crypto2600
Forum Active member
 
Posts: 134
Joined: Sat Jun 19, 2010 7:59 pm

Re: tinyMCE Trouble

Postby marinos » Thu Jul 15, 2010 12:15 pm

Thanks A lot!!!
Everything should be made as simple as possible, but not simpler.
--Albert Einstein--
User avatar
marinos
How much time you spend in here?
 
Posts: 834
Joined: Tue May 20, 2008 2:37 pm
Location: Limassol

Re: tinyMCE Trouble

Postby crypto2600 » Thu Jul 15, 2010 12:26 pm

No problem. Read my previous message. It's very important. If any of your queries are insecure, then someone can easily exploit them using your forms.
"And on the 7th day God typed :wq and then played Nethack as a Barbarian" -
User avatar
crypto2600
Forum Active member
 
Posts: 134
Joined: Sat Jun 19, 2010 7:59 pm

Re: tinyMCE Trouble

Postby marinos » Thu Jul 15, 2010 1:36 pm

I read them and I just start fixing some other issues on the code.
Everything should be made as simple as possible, but not simpler.
--Albert Einstein--
User avatar
marinos
How much time you spend in here?
 
Posts: 834
Joined: Tue May 20, 2008 2:37 pm
Location: Limassol

Next

Return to Scripting and Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron