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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.2.0-a1
    • 3.0.10
    • BBCode Engine
    • None

      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

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

              Created:
              Updated:
              Resolved: