From 13b337ad76ae67057d64fca920d23a5389ae2c0e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Feb 2018 09:49:08 +0100 Subject: web-scripts/todos.php: display "$" correctly --- web-scripts/todos.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web-scripts') diff --git a/web-scripts/todos.php b/web-scripts/todos.php index 123fa35..e4ab2c9 100644 --- a/web-scripts/todos.php +++ b/web-scripts/todos.php @@ -48,9 +48,12 @@ if ($result -> num_rows > 0) { $edges=$edges . "\"" . $link["depending_on"] . "\" -> \"" . $link["dependent"] . "\";\n"; } +$knots = str_replace("\$","\\\$",$knots); +$edges = str_replace("\$","\\\$",$edges); + header ("Content-type: image/png"); passthru( - "dot -Tpng -o/dev/stdout /dev/stdin <