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

Allow parameters for [email] BBCode content instead of addresses only

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.0.10
    • 3.2.0-a1
    • BBCode Engine
    • None

    Description

      The existing [email] BBCode only allows plain e-mail addresses instead of also allowing parameters for handing over a subject or body text, like:

      void@void.net?subject=phpBB Ticket: improvement

      The improvement would only affect the BBCode - not the automatic URLs to clickable links recognition.
      Open /includes/message_parser.php and find:

              if (!preg_match('/^' . get_preg_expression('email') . '$/i', $email))

      Replace with:

              if (!preg_match('/^' . get_preg_expression('email') . '(\\?.+)?$/i', $email))

      Tested for both versions of the BBCode (with and without title).

      Source topic: http://www.phpbb.com/community/viewtopic.php?f=46&t=2157009

      Attachments

        Issue Links

          Activity

            People

              nicofuma nicofuma
              AmigoJack AmigoJack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: