From 53a53d657e6883af2ca6cf2eb3b29fa4964dd88c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 7 Apr 2018 22:42:43 +0200 Subject: web-scripts/todos.php: escape '"' correctly --- web-scripts/todos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-scripts/todos.php b/web-scripts/todos.php index e4ab2c9..49bb9ac 100644 --- a/web-scripts/todos.php +++ b/web-scripts/todos.php @@ -18,7 +18,7 @@ if ($result -> num_rows > 0) { while ($row = $result->fetch_assoc()) $knot_rows[$row["id"]] = - $row["file"]. " (line ".$row["line"]."):\\n".$row["description"]; + $row["file"]. " (line ".$row["line"]."):\\n".str_replace("\"","\\\"",$row["description"]); unset($knots); foreach ($knot_rows as $knot) -- cgit v1.2.3-54-g00ecf