6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7727] Routes: Underscore between vars in URL
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . . .. ..___ [__)|__| ||__|[__ [__)| |\__|| ||
Comment
> when creating a route with an "_" between to variables like this: > > > > /some/example/:myVar_:anotherVar > > > > I get the following error > > > > MESSAGE: preg_match() [function.preg-match]: Compilation failed: > syntax error in subpattern name (missing terminator) at offset 42 > > TYPE: Warning > > FILE: /usr/local/php5/lib/php/Horde/Routes/Route.php > > LINE: 612 > > DEBUG INFO: > > > > 607 if (substr($url, -1) == '/' && strlen($url) > 1) { > > 608 $url = substr($url, 0, -1); > > 609 } > > 610 > > 611 // Match the regexps we generated > > 612 $match = preg_match('@' . str_replace('@', '\@', $this->regexp) . > '@', $url, $matches); > > > > 613 if ($match == 0) { > > 614 return false; > > 615 } > > 616 > > 617 $host = isset($kargs['environ']['HTTP_HOST']) ? > $kargs['environ']['HTTP_HOST'] : null;
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers