Author Topic: Ruby Problems  (Read 2978 times)

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Ruby Problems
« 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

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: Ruby Problems
« Reply #1 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.

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Re: Ruby Problems
« Reply #2 on: April 21, 2011, 04:13:35 am »
Hello Merkur2k

Thank you - that solved the problem!

BR
Johannes