fix xml problems
[push-tester.git] / www / add-article.php
index 5c925cf2f6226f41c873642e3f319018ebffa5e9..3b46ef5e8a3f560cc58de1b95a228368f40becba 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,