Skip to content
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "friendsofsymfony1/symfony1",
"name": "lexpress/symfony1",
"description": "Fork of symfony 1.4 with dic, form enhancements, latest swiftmailer and better performance",
"type": "library",
"license": "MIT",
"require": {
"php" : "^7.4 || ^8.1",
"friendsofsymfony1/swiftmailer": "^5.4.13 || ^6.2.5",
"oomphinc/composer-installers-extender": "^1.1"
"friendsofsymfony1/swiftmailer": "^5.4.13 || ^6.2.5"
},
"require-dev": {
"psr/log": "*"
Expand Down
2 changes: 1 addition & 1 deletion lib/helper/TagHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function escape_javascript($javascript = '')
*/
function escape_once($html)
{
return fix_double_escape(htmlspecialchars($html, ENT_COMPAT, sfConfig::get('sf_charset')));
return fix_double_escape(is_string($html) ? htmlspecialchars($html, ENT_COMPAT, sfConfig::get('sf_charset')) : null);
}

/**
Expand Down
Loading