6.0.0-beta1
7/8/25

[#5119] Javascript problem with single quote in mailbox folder name
Summary Javascript problem with single quote in mailbox folder name
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at) , slusarz (at) horde (dot) org
Requester thomas.trolez (at) neofelis (dot) fr
Created 03/15/2007 (6690 days ago)
Due
Updated 03/22/2007 (6683 days ago)
Assigned 03/19/2007 (6686 days ago)
Resolved 03/22/2007 (6683 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/22/2007 08:57:55 PM Michael Slusarz Comment #4
State ⇒ Resolved
Reply to this comment
It is transported in JSON - however, we unpack it in tree.js and then 
use the nodeId values when building javascript function calls.  So 
nodeId "a'b" creates a function call like the following:

horde_menu.toggle('a'b');



This should be fixed with JS replace() calls I just put into tree.js 
(HEAD and 4.1.5).
03/19/2007 03:58:22 AM Chuck Hagenbuch Comment #3 Reply to this comment
I agree that Horde_Tree should take care of any necessary quoting; 
given that Horde_Tree uses JSON for javascript, though, where's this 
coming from?
03/19/2007 03:13:26 AM Michael Slusarz Comment #2
State ⇒ Feedback
Assigned to Horde DevelopersHorde Developers
Reply to this comment
This is actually a bug in Horde_Tree::.  At least I think it is - i 
don't believe we should require a user to quote their node ID before 
passing into Horde_Tree.  Especially since the quoting algorithim may 
differ depending on the Tree backend selected.



Agree/disagree?
03/16/2007 05:08:11 AM Chuck Hagenbuch Assigned to Michael Slusarz
Summary ⇒ Javascript problem with single quote in mailbox folder name
 
03/15/2007 06:22:48 AM thomas (dot) trolez (at) neofelis (dot) fr Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Java Scrip prolem with single quote in mailbox folder name
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Hi,



When a mailbox folder contain a single quote (eg : it's my home 
folder) we can't expand the subtree of this folder.



I thing this bug can be solve by protect single quote into single 
quoted string in javascript



regards

Saved Queries