Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294700

add < u > to allowed tags when importing translations

$
0
0

Problem/Motivation

Recently, in anticipation of the launch of Drupal CMS, I tried to translate all the modules available in the new standard Drupal download into German using localize.drupal.org. In the Leaflet module, I noticed some strings that were rejected when importing, even though they did not contain any syntax errors. What these strings have in common is that they all contain underlined text for which the opening HTML tag '< u >' and its closing counterpart '< /u >' are used.

Could it be that the function locale_string_is_safe and the corresponding XXS filter list, which unfortunately I don't know in which function it is found, do not include the HTML tag for underlining text? The strings in question are, for example,

https://localize.drupal.org/translate/languages/de/translate?page=1&proj...

It would be nice if we could also include this HTML tag in the corresponding lists, as long as it does not contradict what the XXS cross-scripting filter is supposed to contribute in terms of security.

This would ensure that no more errors are displayed when importing correctly formatted translations.

Steps to reproduce

  1. Install Drupal CORE
  2. Install the leaflet contributed module
  3. Add German as second Language in your Installatiion
  4. update and immport translations
  5. See current log messages in the reports section
  6. see import errors of locale
  7. compare non imported strings they all must contain < u >

Proposed resolution

add the underline html tag to allowd tag list forlocalisazoion import in Drupal

Remaining tasks

change coe

User interface changes

none

Introduced terminology

-

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD


Viewing all articles
Browse latest Browse all 294700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>