From 043bd481f64de25255d37b7e6f15113f1a994cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 22 Jun 2016 17:13:44 +0200 Subject: [PATCH] workflows: don't break on quotation marks in status names (#11493) --- wcs/admin/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/admin/workflows.py b/wcs/admin/workflows.py index 114ca63..5772bc6 100644 --- a/wcs/admin/workflows.py +++ b/wcs/admin/workflows.py @@ -137,7 +137,7 @@ def graphviz(workflow, url_prefix='', select=None, svg=True, for status in workflow.possible_status: i = status.id print >>out, 'status%s' % i, - print >>out, '[label="%s"' % status.name, + print >>out, '[label="%s"' % status.name.replace('"', "'"), if select == str(i): print >>out, ',id=current_status' if status.colour: -- 2.8.1