LinuxMCE Forums

General => Users => Topic started by: aico on April 20, 2011, 04:16:55 pm

Title: Ruby Problems
Post by: aico on April 20, 2011, 04:16:55 pm
Hello,

I am playing with Ruby Codes and some strange things happen:

This is the code I try (Extended Editor):

#system("tdtool --on 4")
command = "*1*1*"+device_.devdata_[294]+device_.devdata_[295]+"##"
log("Light On")
conn_.Send(command)


If I hit "update" (Extended Editor) the code looks like this:

#system(\"tdtool --on 4\")
command = \"*1*1*\"+device_.devdata_[294]+device_.devdata_[295]+\"##\"
log(\"Light On\")
conn_.Send(command)


As you can see, there are some \ added...

I use Firefox 3.6.16.

Any ideas?

Regards
Johannes
Title: Re: Ruby Problems
Post by: merkur2k on April 21, 2011, 02:36:59 am
add the following line to /var/www/lmce-admin/.htaccess
php_flag magic_quotes_gpc off

( sudo echo "php_flag magic_quotes_gpc off" >> /var/www/lmce-admin/.htaccess )

This has been fixed in svn and will be available in a future release.
Title: Re: Ruby Problems
Post by: aico on April 21, 2011, 04:13:35 am
Hello Merkur2k

Thank you - that solved the problem!

BR
Johannes