News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Ruby Problems

Started by aico, April 20, 2011, 04:16:55 PM

Previous topic - Next topic

aico

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

merkur2k

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.

aico

Hello Merkur2k

Thank you - that solved the problem!

BR
Johannes