Changeset 658


Ignore:
Timestamp:
08/06/2011 02:01:36 AM (10 months ago)
Author:
ofer
Message:

Fix for search string widget bug noticed by AnneSO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/core/utils.php

    r621 r658  
    310310        $href = substr($href, strlen($home_url)); 
    311311        $url = stripslashes(urldecode($href)); 
     312        $params = ($pos = strpos($url, '?')) ? substr($url, $pos) : ''; 
    312313        $url = (($pos = strpos($url, '?')) ? substr($url, 0, $pos) : $url); 
    313314        $url2 = ''; 
     
    334335            else $url2 .= '/' . $part; 
    335336        } 
     337        if ($url2 =='') $url2 = '/'; 
    336338        // TODO: Consider sanitize_title_with_dashes 
    337339        // TODO : need to handle params.... 
     
    342344        //$href = $this->home_url.$url2; 
    343345        if (substr($href, strlen($href) - 1) == '/') $url2.='/'; 
    344         return $home_url . $url2; 
     346        return $home_url . $url2.$params; 
    345347    } 
    346348 
Note: See TracChangeset for help on using the changeset viewer.