Skip to content

Commit

Permalink
Forms: Possible fix for invalid dates
Browse files Browse the repository at this point in the history
(cherry picked from commit 2357863)
  • Loading branch information
mjansenDatabay committed Apr 6, 2018
1 parent eb0272c commit 95870b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/Form/classes/class.ilDateDurationInputGUI.php
Expand Up @@ -484,7 +484,7 @@ public function render()

// values

$date_value = $this->invalid_input_start;
$date_value = htmlspecialchars($this->invalid_input_start);
if(!$date_value &&
$this->getStart())
{
Expand All @@ -493,7 +493,7 @@ public function render()
}
$tpl->setVariable('DATEPICKER_START_VALUE', $date_value);

$date_value = $this->invalid_input_end;
$date_value = htmlspecialchars($this->invalid_input_end);
if(!$date_value &&
$this->getEnd())
{
Expand Down

0 comments on commit 95870b2

Please sign in to comment.