Skip to content
Snippets Groups Projects
Commit 6057f473 authored by Phy's avatar Phy Committed by GitHub
Browse files

Add htmlspecialchars when showing $DATE_AT

Fixes #2061
parent 39f9a58e
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ if($DATE_AT) {
} else { // check for UNIX Timestamp
$date_parse = @date('Ymd',$DATE_AT);
if(!$date_parse || $date_parse === '19700101') {
msg(sprintf($lang['unable_to_parse_date'], $DATE_AT));
msg(sprintf($lang['unable_to_parse_date'], htmlspecialchars($DATE_AT)));
$DATE_AT = null;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment