From 82172a767403a4ebca2b88305a5a150549d51f75 Mon Sep 17 00:00:00 2001 From: xemlock Date: Mon, 6 May 2019 00:37:07 +0200 Subject: [PATCH] Simplify tzColon --- library/HTMLPurifier/AttrDef/HTML5/Datetime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/HTMLPurifier/AttrDef/HTML5/Datetime.php b/library/HTMLPurifier/AttrDef/HTML5/Datetime.php index 9232aef..4224162 100644 --- a/library/HTMLPurifier/AttrDef/HTML5/Datetime.php +++ b/library/HTMLPurifier/AttrDef/HTML5/Datetime.php @@ -175,7 +175,7 @@ public function parse($string) } $tzHour = $tzMinute = null; - $tzColon = $match['tzMinute'] === '' ? ':' : $match['tzColon']; + $tzColon = $match['tzColon']; if ($match['tzZulu'] !== '') { $tzHour = 'Z';