summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'web-scripts')
-rw-r--r--web-scripts/todos.php5
1 files changed, 4 insertions, 1 deletions
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" .