Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Jun 26, 2023
1 parent e538f87 commit f4753d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildInFilters.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return "null";
if (is_array($input))
return "##ERR:filter:html - input is array##";
return htmlspecialchars($input);
return htmlspecialchars((string)$input);
};

// Raw is only a pseudo-filter. If it is not in the chain of filters, __DEFAULT__ will be appended to the filter
Expand All @@ -23,7 +23,7 @@
return "null";
if (is_array($input))
return "##ERR:filter:html - input is array##";
return htmlspecialchars($input);
return htmlspecialchars((string)$input);
};
TextTemplate::$__DEFAULT_FILTER["raw"] = function ($input) { return $input; };
TextTemplate::$__DEFAULT_FILTER["singleLine"] = function ($input) { return str_replace("\n", " ", $input); };
Expand Down

0 comments on commit f4753d6

Please sign in to comment.