Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14827

Possibility to add multiple form keys

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.10
    • Fix Version/s: 3.1.11-RC1
    • Component/s: Extensions
    • Labels:
      None

      Description

      phpBB uses the add_form_key function to secure form submissions. The function assigns the template variable S_FORM_TOKEN (here) which the template then displays. However, when extensions want to secure their form submissions on pages where phpBB already called that function, it won't work because it overwrites the already assigned template variable.

      For this case I'd like to have a way to add a template variable suffix:

      'S_FORM_TOKEN' . $template_variable_suffix => $s_fields,

      It could be passed via an optional function argument $template_variable_suffix = '' or it could be set in the core.add_form_key event.

      Did I miss anything or shall I prepare a PR for this?

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              kasimi kasimi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: