Development

Changeset 7273

You must first sign up to be able to contribute.

Changeset 7273

Show
Ignore:
Timestamp:
02/02/08 18:38:05 (7 months ago)
Author:
pookey
Message:

Fix regex to match generic syntax for absoluteURI scheme as per RFC3986

Files:

Legend:

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

    r5021 r7273  
    3232  { 
    3333    // absolute URL or symfony URL? 
    34     if (!is_array($parameters) && preg_match('#^[a-z]+\://#', $parameters)) 
     34    if (!is_array($parameters) && preg_match('#^[a-z][a-z0-9\+.\-]*\://#i', $parameters)) 
    3535    { 
    3636      return $parameters;