Skip to content

Commit

Permalink
Removed unnecessary addslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jun 4, 2018
1 parent 64800a8 commit a031552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -1455,7 +1455,7 @@ protected function _magicOptions($fieldName, $options, $allowOverride)

if (method_exists($context, 'getRequiredMessage')) {
$message = $context->getRequiredMessage($fieldName);
$message = addslashes(h($message));
$message = h($message);

if ($options['required'] && $message) {
$options['templateVars']['customValidityMessage'] = $message;
Expand Down

0 comments on commit a031552

Please sign in to comment.