Uploaded image for project: 'Blesta Extensions'
  1. Blesta Extensions
  2. EXT-10

Translator: Prevent translations containing code

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      We should update the translator to reject translations containing strings that are pretty exclusive to malicious code. The translator should reject the translation and give the user a warning. Illegal terms include:

      • <?php
      • <script

      Also,

      • var1 (or var2, var3, etc.) should only ever exist to be translated properly to %1$s, %2$s, etc. If they end up being var1, var2, var3 in the translation, then this should be an error too

        Activity

        jonathan Jonathan Reissmueller created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Description We should update the translator to reject translations containing strings that are pretty exclusive to malicious code. The translator should reject the translation and give the user a warning. Illegal terms include:
        * <?php
        * <script
        *
        We should update the translator to reject translations containing strings that are pretty exclusive to malicious code. The translator should reject the translation and give the user a warning. Illegal terms include:
        * <?php
        * <script

        Also,
        * var1 (or var2, var3, etc.) should only ever exist to be translated properly to %1$s, %2$s, etc. If they end up being var1, var2, var3 in the translation, then this should be an error too

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: