fix xml problems master
authorChristian Weiske <cweiske@cweiske.de>
Fri, 13 Mar 2020 20:32:52 +0000 (21:32 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 13 Mar 2020 20:32:52 +0000 (21:32 +0100)
www/add-article.php

index 5c925cf..3b46ef5 100644 (file)
@@ -6,7 +6,7 @@ $time = time();
 $timestr = date('Y-m-d', $time) . 'T' . date('H:i:s', $time);
 $file = __DIR__ . '/articles/' . $timestr . '.htm';
 $title = $timestr;
-$content = `/usr/games/fortune`;
+$content = htmlspecialchars(`/usr/games/fortune`);
 
 file_put_contents(
     $file,