[imp] Javascript Error on mailbox display

Jan Schneider jan@horde.org
Sun, 24 Feb 2002 15:59:31 +0100


Zitat von Dan Wilson <dan@acucore.com>:

> When a subject has an apostrophy in it, I get a javascript error when
> veiwing 
> my mailbox.
> 
> I've tracked it down to the onmouseover event setting the window.status. 
> It 
> looks like rather than escaping the apostrophy (with a backslash), it
> adds 
> another apostrophy in there (SQL style apostrophy escaping).  This causes
> an 
> error "Expecting ';' at line....".
> 
> I looked at the code and IMP uses addslashes, but it's doing it a little
> funky.
> 
> Is this a configuration problem on my side?  I updated my server to be 
> PHP4.1.1 just recently and I can't remember when it started happening,
> but 
> that may have done it.
> 
> However, I've continued to update from cvs as well, so it could have been
> 
> caused by one of the recent changes.

This has already been fixed in cvs though it's not yet merged to the RELENG 
branch. I just checked again if I missed one of those javascript calls and 
it works fine here with apostrophies.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft