Skip to content

Commit

Permalink
fixes casting
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl authored Nov 14, 2023
1 parent 9de7d22 commit 015de44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lemon/Templating/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public function escapeScript(mixed $content): string
*/
public function escapeAttribute(mixed $content): string
{
return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars($content);
return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars((string) $content);
}
}

0 comments on commit 015de44

Please sign in to comment.