Fixed
Details
Assignee
Guus der KinderenGuus der KinderenReporter
Daryl HerzmannDaryl HerzmannIgnite Forum URL
Components
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Guus der Kinderen
Guus der KinderenReporter
Daryl Herzmann
Daryl HerzmannIgnite Forum URL
Components
Fix versions
Affects versions
Priority
Created November 24, 2010 at 2:28 PM
Updated October 28, 2020 at 1:26 PM
Resolved November 24, 2010 at 2:33 PM
Hi,
I have found a bug in the web chat plugin where quotation marks are added around auto-populated values when "Populate with user's previous choice" option is used.
1) Edit the form UI for a workgroup from the admin console to enable "Populate with user's previous choice" option for a text field.
2) After saving the form, complete a chat session via the fastpath webchat plugin, filling in the field mentioned above with a value.
3) On starting a second session, the value auto-populated in the form is wrapped in "".
4) Every time a new chat is started, an extra set of quotation marks is added.
The problem occurs because in the FormUtils class (http://svn.igniterealtime.org/svn/repos/fastpath/webchat/trunk/src/java/org/jive software/webchat/util/FormUtils.java) the form field's entire value attribute is escaped, when it should just be the actual field value retrieved from the cookie which is escaped.
I have attached a patch which fixes the issue, which I hope can be incorporated.
Please let me know if there is anything further I need to do, or if I need to post this elsewhere, as it is likely that I may have other fixes that I can contribute back to the community.
Thanks & Regards
Stuart