Skip to content

Commit

Permalink
bugfix for unescaped html tags in data being sent to translation prov…
Browse files Browse the repository at this point in the history
…ider
  • Loading branch information
Krzysztof Marczak committed Jul 8, 2021
1 parent c73f0b3 commit 446d123
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function translateFieldAction(Request $request, ProviderFactory $provider
$provider->setFormality($request->get('formality'));
}

$data = strip_tags($data);
$data = $provider->translate($data, $lang);
} catch (\Throwable $exception) {
return $this->adminJson([
Expand Down

0 comments on commit 446d123

Please sign in to comment.