[Tickets #7727] Routes: Undersocre between vars in URL

bugs at horde.org bugs at horde.org
Thu Nov 27 10:52:45 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7727
------------------------------------------------------------------------------
  Ticket             | 7727
  Created By         | edleadesign at gmail.com
  Summary            | Routes: Undersocre between vars in URL
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


edleadesign at gmail.com (2008-11-27 05:52) wrote:

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;





More information about the bugs mailing list