Url Filter Rev
class relativeUrlFilter extends sfFilter { public function execute($filterChain){ $context = $this->getContext(); $request = $context->getRequest(); $relative = preg_replace('#/[^/]+.php5?$#', '', $request->getScriptName()); $webDir = str_replace('\', '/', sfConfig::get('sf_web_dir')); $intercept = '/'.implode('/', array_intersect(explode('/',$relative), explode('/',$webDir))); $position = strpos($webDir, $intercept); $request->setRelativeUrlRoot(substr($webDir, $position)); $filterChain->execute(); } }
[Funny Games](http://www.asgames.net)
Anonymous on May 08, 2010
fP1apm <a href="http://epuiafxllkcd.com/">epuiafxllkcd</a>, [url=http://fpwpeshsscim.com/]fpwpeshsscim[/url], [link=http://kqoprbxemfud.com/]kqoprbxemfud[/link], http://pvoigjvqpokl.com/
Anonymous on Jun 10, 2010
Q2ytWJ <a href="http://xbzelnclgjdj.com/">xbzelnclgjdj</a>, [url=http://vwcingslieky.com/]vwcingslieky[/url], [link=http://zmxxtdygeknb.com/]zmxxtdygeknb[/link], http://rncslsfaesxg.com/