INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Bug in Webgizmo  (Read 1568 times)

nickba

  • Junior Woodchuck
  • **
  • Posts: 82
Bug in Webgizmo
« on: June 16, 2012, 05:04:37 am »

I found a bug in Webgizmo. If the title have the " character on it, and you select This Location(online playback) it will not play the song on any browser.

Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Bug in Webgizmo
« Reply #1 on: June 16, 2012, 05:27:46 am »

Confirmed (17.0.173)
The " needs to be escaped with a \ for it to not cause problems.
I tested by creating a test file with a " in it, I used various positions and it would not play unless I added the escapement character (\).
Works fine when "Playing here" is not the play location.
Logged
Sean

nickba

  • Junior Woodchuck
  • **
  • Posts: 82
Re: Bug in Webgizmo
« Reply #2 on: June 17, 2012, 04:49:23 am »

Confirmed (17.0.173)
The " needs to be escaped with a \ for it to not cause problems.
I tested by creating a test file with a " in it, I used various positions and it would not play unless I added the escapement character (\).
Works fine when "Playing here" is not the play location.

Exactly! Should be easy to fix in the next version...
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: Bug in Webgizmo
« Reply #3 on: June 25, 2012, 09:37:01 am »

I need a little help on this one.

When the web engine in Media Center builds a page, it normally escapes values with HTML encoding (%20, etc.)

But if the variable is in a javascript block, we don't do this (or else it breaks things).

The variables in javascript blocks must need some other type of escapement.  But what are the rules?  Is it as simple as replacing ' and " with \" and \'?

Thanks for any help.
Logged
Matt Ashland, JRiver Media Center

nickba

  • Junior Woodchuck
  • **
  • Posts: 82
Re: Bug in Webgizmo
« Reply #4 on: June 27, 2012, 12:58:59 am »

I need a little help on this one.

When the web engine in Media Center builds a page, it normally escapes values with HTML encoding (%20, etc.)

But if the variable is in a javascript block, we don't do this (or else it breaks things).

The variables in javascript blocks must need some other type of escapement.  But what are the rules?  Is it as simple as replacing ' and " with \" and \'?

Thanks for any help.

Maybe Scolex can help as I donīt program in java.
Logged

Scolex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1116
  • Cheers
Re: Bug in Webgizmo
« Reply #5 on: June 27, 2012, 01:40:02 am »

There is a beta fix, I haven't had time to test but I am sure it is fine and will go public in a few days if it follows the typical routine.
Logged
Sean
Pages: [1]   Go Up