Incorrect translatable string in FileTransferAuthorizeForm

Created on 28 July 2023, 11 months ago
Updated 15 August 2023, 11 months ago

This causes "String import failed" error when importing translations.

$form_state->setErrorByName('connection_settings', $this->t('Failed to connect to the server. The server reports the following message: <p class="error">@message</p> For more help adding or updating code on your server, see the <a href=":handbook_url">handbook</a>.', [
  '@message' => $e->getMessage(),
  ':handbook_url' => 'https://www.drupal.org/docs/extending-drupal/overview',
]));

Seems like locale_string_is_safe() does not allow p tag in translatable strings.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Other 

Last updated about 13 hours ago

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024