Opened 7 years ago

Closed 7 years ago

#1421916 closed Bugs (fixed)

Wrong regexp for matching id's in to-field on composing mail

Reported by: nobody Owned by: roundcube
Priority: 5 Milestone:
Component: PHP backend Version: None
Severity: critical Keywords:
Cc:

Description

program/steps/mail/compose.inc
123c123
<       if (!empty($_GET['_to']) &&
preg_match('/[0-9]+,?/', $_GET['_to']))
---
>       if (!empty($_GET['_to']) &&
preg_match('/^[0-9]+,?/', $_GET['_to']))

Otherwise all emailaddresses containing numbers are
matched as ids.

Change History (1)

comment:1 Changed 7 years ago by thomasb

  • Resolution changed from None to fixed
  • Severity set to critical
  • Status changed from assigned to closed

Fixed long time ago

Note: See TracTickets for help on using tickets.