Skip to content

Commit

Permalink
Merge pull request #1162 from itinerare/push-srpnznxmlnno
Browse files Browse the repository at this point in the history
fix: decode HTML special chars after parsing
  • Loading branch information
itinerare authored Dec 27, 2024
2 parents bce4dc9 + 4b1015e commit 63a4ed0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Http/Middleware/ParsePostRequestFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function handle(Request $request, Closure $next) {
} else {
$parsedFields[$key] = parse($value);
}

// Decode HTML special chars
$parsedFields[$key] = htmlspecialchars_decode($parsedFields[$key]);
}
}

Expand All @@ -58,6 +61,9 @@ private function parseArray(array $array, array $strippedFields): array {
} else {
$array[$key] = parse($value);
}

// Decode HTML special chars
$array[$key] = htmlspecialchars_decode($array[$key]);
}
}

Expand Down

0 comments on commit 63a4ed0

Please sign in to comment.