Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17649

Unsafe eval: String literal passed to SetTimeout() in progress_bar.html

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.0-a2
    • ACP

      In \adm\style\progress_bar.html, there is this JS function call:

      setTimeout("close_popup()", 1000);

      It can simply be turned into:

      setTimeout(close_popup, 1000);

       

      This would allow a safer Content Security Policy, because "script-src unsafe-eval" would no longer be needed: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/script-src#unsafe_eval_expressions

       

      We found no other occurrences of unsafe eval expressions.

       

            Unassigned Unassigned
            Aeonic Aeonic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: