OpenLayers OpenLayers

Changeset 2124

Show
Ignore:
Timestamp:
01/02/07 20:00:51 (2 years ago)
Author:
euzuro
Message:

applying patch from #455 - fixes url equivalence testing for Opera browser

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Util.js

    r2093 r2124  
    799799    urlObject.pathname = a.pathname;   
    800800     
     801    //Test to see if the pathname includes the arguments (this happens in Opera) 
     802    var qIndex = urlObject.pathname.indexOf("?"); 
     803    if (qIndex != -1) { 
     804        urlObject.pathname = urlObject.pathname.substring(0, qIndex); 
     805    } 
     806 
     807     
    801808  //hash 
    802809    urlObject.hash = (options.ignoreHash) ? "" : a.hash;