coderanger/trac-mastertickets — Issue #17: Quotation marks in ticket names break dependency graphs
Author: sparkchaser
Created: 2012-01-30 21:51:54+00:00
State: open

The auto-generated dependency graph (in version 3.0.2) is wrong when one of the tickets in the graph uses quotation marks in its summary. See the image at [http://pixpipeline.com/d/4829ce35c40e.png] for an example. In this example, ticket #647 was named 'Change "#define DWORD unsigned long" to "#define DWORD unsigned int"'.

I believe that this is a case of quotes not being escaped properly. If I make the following change, everything behaves as expected:

web_ui.py, line 273
was:

````python
node['tooltip'] = tkt['summary']
````
now:

````python
node['tooltip'] = re.sub(r'"', r"'", tkt['summary'])
````