index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | web-scripts/todos.php | 5 |
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 <<EOF\n". + "dot -Tpng -o/dev/stdout /dev/stdin <<EOF\n" . "digraph dependencies {\n" . "rankdir=LR;\n" . "fontname=dejavu;\n" . |