LinuxMCE Forums
May 19, 2013, 06:24:35 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Ruby Problems  (Read 468 times)
aico
Veteran
***
Posts: 74


View Profile
« on: April 20, 2011, 03: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
Logged
merkur2k
Addicted
*
Posts: 513


View Profile
« Reply #1 on: April 21, 2011, 01: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.
Logged
aico
Veteran
***
Posts: 74


View Profile
« Reply #2 on: April 21, 2011, 03:13:35 am »

Hello Merkur2k

Thank you - that solved the problem!

BR
Johannes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!