TinyMCE can not save registry keys code

Please report bugs here!

Moderator: Thorsten

Post Reply
sakajati
Posts: 3
Joined: Thu Feb 26, 2009 10:43 am
Location: Jakarta
Contact:

TinyMCE can not save registry keys code

Post by sakajati »

Hi,

First off, thanks a lot for this great software. It's the best FAQ system! Just have one problem with the editor, it can not save an article contains registry keys code:

[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\5]
@="DataDisconnection"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\4]
@="AUTD"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\3]
@="WLAN"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\2]
@="Bluetooth"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\1]
@="Phone"
[HKEY_LOCAL_MACHINE\Software\HTC\CommManager\0]
@="FlightMode"

It throw an error when I preview the article and got a blank article when I save it. The only way to add the article is by editing the database directly using phpmyadmin :)

Can someone confirm this issue?
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: TinyMCE can not save registry keys code

Post by Thorsten »

Hi,
sakajati wrote:Can someone confirm this issue?
yes. But's it's not the editor, it's our null byte protection. Do you want to remove the protection? If yes, I'll post the patch.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sakajati
Posts: 3
Joined: Thu Feb 26, 2009 10:43 am
Location: Jakarta
Contact:

Re: TinyMCE can not save registry keys code

Post by sakajati »

Thorsten wrote: Do you want to remove the protection? If yes, I'll post the patch.
Yes absolutely :D. Thanks a lot for your support!
Image
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

edit the inc/Init.php and remove the code

Code: Select all

        if (strpos($string, '\0') !== false) {
            return null;
        }
at line 476.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sakajati
Posts: 3
Joined: Thu Feb 26, 2009 10:43 am
Location: Jakarta
Contact:

Post by sakajati »

It doesn't fix the problem :cry: BTW I'm using v2.0.12
Post Reply