From 7a362ae21562e694d49e54ef9bba8fd63f12529b Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 13 Mar 2020 21:32:52 +0100 Subject: [PATCH] fix xml problems --- www/add-article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2