| Summary | Routes: Underscore between vars in URL |
| Queue | Horde Framework Packages |
| Queue Version | Git master |
| Type | Bug |
| State | Assigned |
| Priority | 2. Medium |
| Owners | mike (at) naberezny (dot) com |
| Requester | edleadesign (at) gmail (dot) com |
| Created | 11/27/2008 (6175 days ago) |
| Due | |
| Updated | 09/24/2010 (5509 days ago) |
| Assigned | 11/27/2008 (6175 days ago) |
| Resolved | |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
Taken from Chuck Hagenbuch
python version given the same input. I think the route might simply be
ambiguous; if you use this as the route path, it works:
$m->connect('/some/example/:(myVar)_:(anotherVar)', array('controller'
=> 'default'));
Assigned to Mike Naberezny
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Routes: Undersocre between vars in URL
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
/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;