Development

Changeset 8464

You must first sign up to be able to contribute.

Changeset 8464

Show
Ignore:
Timestamp:
04/15/08 02:16:26 (1 year ago)
Author:
fabien
Message:

fixed exception problem when an exception occurs when parsing a URL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/routing/sfRouting.class.php

    r7779 r8464  
    226226  public function filterParametersEvent(sfEvent $event, $parameters) 
    227227  { 
    228     return array_merge($parameters, $this->parse($event['path_info'])); 
     228    try 
     229    { 
     230      return array_merge($parameters, $this->parse($event['path_info'])); 
     231    } 
     232    catch (sfError404Exception $e) 
     233    { 
     234      return $parameters; 
     235    } 
    229236  } 
    230237 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.