https://defect.opensolaris.org/bz/show_bug.cgi?id=18932
Summary: non escaped backslash in output javascript causes
issues
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P3
Component: webapp
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
In menu.jspf on line 68, documents.projects is set to jsProjects.toString()
This should be escaped. I have a project calles 10.2Brelatief\ and the end
backslash in the resulting javascript escapes the closing quote. I fixed it for
my case by changing
sProjects.toString()
to
jsProjects.toString().replace("\\","\\\\")
but I'm not quite sure if that's a solution that will catch all potential
similar problems.
--
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev