git.cweiske.de
/
push-tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a15fce4
)
fix xml problems
master
author
Christian Weiske
<
[email protected]
>
Fri, 13 Mar 2020 20:32:52 +0000
(21:32 +0100)
committer
Christian Weiske
<
[email protected]
>
Fri, 13 Mar 2020 20:32:52 +0000
(21:32 +0100)
www/add-article.php
patch
|
blob
|
history
diff --git
a/www/add-article.php
b/www/add-article.php
index 5c925cf2f6226f41c873642e3f319018ebffa5e9..3b46ef5e8a3f560cc58de1b95a228368f40becba 100644
(file)
--- 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,