6.0.0-beta1
9/24/25

[#531] Compilation error in lib/Turba.php
Summary Compilation error in lib/Turba.php
Queue Turba
Queue Version 1.2.2
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester selsky (at) columbia (dot) edu
Created 09/01/2004 (7693 days ago)
Due
Updated 09/01/2004 (7693 days ago)
Assigned 09/01/2004 (7693 days ago)
Resolved 09/01/2004 (7693 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/01/2004 09:33:21 PM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in HEAD and RELENG, thanks.
09/01/2004 09:27:52 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
09/01/2004 09:02:40 PM selsky (at) columbia (dot) edu Comment #2
New Attachment: lib.Turba.php.patch Download
Reply to this comment
Patch to escape regular expression syntax before using $lastname
09/01/2004 09:00:07 PM selsky (at) columbia (dot) edu Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Compilation error in lib/Turba.php
Queue ⇒ Turba
Reply to this comment
My user has address book entries that contain names like "Matt 
*Selsky".  I'm not sure how the "*" got in there.  This creates 
problem when browsing the address book:



Warning: Compilation failed: nothing to repeat at offset 3

in /etc/httpd/htdocs/horde/turba/lib/Turba.php on line 160



The problem is that preg_replace is trying to use a regex like 
"\s+*Selsky", which isn't valid.

Saved Queries