From: Christian Weiske Date: Fri, 13 Mar 2020 20:32:52 +0000 (+0100) Subject: fix xml problems X-Git-Url: https://git.cweiske.de/push-tester.git/commitdiff_plain/HEAD?hp=a15fce45fbaab0673cb330a6af9de7ca235c1ac5;ds=sidebyside fix xml problems --- diff --git a/www/add-article.php b/www/add-article.php index 5c925cf..3b46ef5 100644 --- a/www/add-article.php +++ b/www/add-article.php @@ -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,