[Tickets #14681] preg_match expression error in QuickParser.php

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Aug 11 22:36:59 UTC 2017


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: https://bugs.horde.org/ticket/14681
------------------------------------------------------------------------------
  Ticket           | 14681
  Erstellt Von     | birnbacs at gmail.com
  Zusammenfassung  | preg_match expression error in QuickParser.php
  Warteschlange    | Nag
  Version          | Git master
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            | 1
  Zuständige       |
------------------------------------------------------------------------------


birnbacs at gmail.com (2017-08-11 22:36) hat geschrieben:

There is a weird regular expression in QuickParser.php that does not  
compile with the preg_match command used (line 23):

$indented = preg_match('/^([*-\s]+)(.*)$/', $line, $matches);

The character range from * to whitespace appears intentional and  
innovative but it does not compute. Maybe this line should read:

$indented = preg_match('/^(\s+)(.*)$/', $line, $matches);





More information about the bugs mailing list