Changeset 9257

Show
Ignore:
Timestamp:
08/14/08 11:26:25 (3 months ago)
Author:
afz
Message:

fix issue in url mapping when map variable contain slash

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/URLMapping.php

    r9235 r9257  
    467467                if (is_array($params)) { 
    468468                    foreach ($params as $key => $value) { 
    469                         $url = str_replace('{' . $key . '}', urlencode($value), $url); 
     469                        $value = implode('/', array_map('urlencode', explode('/', $value))); 
     470                        $url = str_replace('{' . $key . '}', $value, $url); 
    470471                    } 
    471472                }