summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-07 22:42:43 +0200
committerErich Eckner <git@eckner.net>2018-04-07 22:42:43 +0200
commit53a53d657e6883af2ca6cf2eb3b29fa4964dd88c (patch)
tree0e77c7217765b901b704af63eea281f45400ef2c
parentec30474304a1c2fc883f4d7d7a20696f6d47172e (diff)
downloadbuilder-53a53d657e6883af2ca6cf2eb3b29fa4964dd88c.tar.xz
web-scripts/todos.php: escape '"' correctly
-rw-r--r--web-scripts/todos.php2
1 files changed, 1 insertions, 1 deletions
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)