Development

Changeset 13026

You must first sign up to be able to contribute.

Changeset 13026

Show
Ignore:
Timestamp:
11/16/08 17:50:51 (8 months ago)
Author:
fabien
Message:

[1.2] fixed genUrl() when a relative URL (/foo/bar) is passed as an argument (it is possible because an internal URI cannot start with a / anymore since symfony 1.1)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/controller/sfWebController.class.php

    r11471 r13026  
    3333    // absolute URL or symfony URL? 
    3434    if (is_string($parameters) && preg_match('#^[a-z][a-z0-9\+.\-]*\://#i', $parameters)) 
     35    { 
     36      return $parameters; 
     37    } 
     38 
     39    // relative URL? 
     40    if (is_string($parameters) && '/' == $parameters[0]) 
    3541    { 
    3642      return $parameters; 

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.