Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 24, 2023
1 parent 63ee0a7 commit 93a906d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MicroweberPackages/App/Http/Middleware/XSS.php
Expand Up @@ -18,6 +18,8 @@ public function handle(Request $request, Closure $next)
array_walk_recursive($input, function (&$input) use ($clean) {
if (is_string($input)) {
$input = $clean->clean($input);
// clean also blade curly braces
$input = str_replace(['{{', '}}'], ['{{', '}}'], $input);
}
});
}
Expand Down

0 comments on commit 93a906d

Please sign in to comment.