[bugs] [Bug 1212] New - addslashes javascript problem

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Mar 27 12:24:05 PST 2003


http://bugs.horde.org/show_bug.cgi?id=1212

*** shadow/1212	Thu Mar 27 12:24:05 2003
--- shadow/1212.tmp.17055	Thu Mar 27 12:24:05 2003
***************
*** 0 ****
--- 1,45 ----
+ Bug#: 1212
+ Product: Horde
+ Version: 2.2 Stable
+ Platform: PHP Code
+ OS/Version: All
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org                            
+ ReportedBy: horde at shadowguarddev.com               
+ URL: 
+ Summary: addslashes javascript problem
+ 
+ Hello.   We were having a problem with IMP not attaching files, and giving a 
+ javascript error having to do with the function attachment_check() (in 
+ templates/compose/javascript.inc).  However, the real problem was with the 
+ change_idenity() function, specifically the following line:
+ 
+ 
+ 
+ 
+ window.status = '<?= addslashes(_("The signature could't be replaced.")) ?>';
+ 
+ 
+ 
+ 
+ Basically, it was getting changed to 'The signature could''t be replaced.'.  I'm 
+ pretty sure this is because we use postgres, and have "magic_quotes_sybase = On" 
+ in our php.ini.   
+ 
+ 
+ 
+ 
+ Anyway, I changed it to "could not" and it worked fine, so you might look into 
+ checking the magic_quotes_* settings and adjusting accordingly, or just use 
+ addcslashes(), which should be independent of the magic_quotes_* settings.
+ 
+ 
+ 
+ 
+ --aaron 
+ 


More information about the bugs mailing list