Skip to content

Commit

Permalink
Update InputVar.php
Browse files Browse the repository at this point in the history
Fehlerhafte Abfrage
  • Loading branch information
pbd-kn committed Jul 7, 2023
1 parent 750c5ac commit 48f8f7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/contao/Modules/InputVar.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ public function replaceInputVars($strTag)
default:
return false;
}

switch ($arrTag[2]) {
if ('' === $arrTag[2]) {}
else {
switch ($arrTag[2]) {
case 'mysql_real_escape_string':
case 'addslashes':
case 'stripslashes':
Expand Down Expand Up @@ -124,6 +125,7 @@ public function replaceInputVars($strTag)
case 'number_format_2':
$varValue = number_format($varValue, 2, $GLOBALS['TL_LANG']['MSC']['decimalSeparator'], $GLOBALS['TL_LANG']['MSC']['thousandsSeparator']);
break;
}
}

return \is_array($varValue) ? implode(', ', $varValue) : $varValue;
Expand Down

0 comments on commit 48f8f7b

Please sign in to comment.