Skip to content

Commit 015de44

Browse files
authored
fixes casting
1 parent 9de7d22 commit 015de44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lemon/Templating/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function escapeScript(mixed $content): string
3535
*/
3636
public function escapeAttribute(mixed $content): string
3737
{
38-
return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars($content);
38+
return str_starts_with((string) $content, 'javascript:') ? '' : htmlspecialchars((string) $content);
3939
}
4040
}

0 commit comments

Comments
 (0)