Changeset 1028


Ignore:
Timestamp:
08/23/08 19:15:07 (11 years ago)
Author:
ray
Message:

#1257 Error if url query string included '/'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1001 r1028  
    7777  // convert _editor_url to absolute 
    7878  if(!_editor_url.match(/^([^:]+\:)?\//)){ 
    79     var path = window.location.toString().split("/"); 
     79    var path = window.location.toString().replace(/\?.*$/,'').split("/"); 
    8080    path.pop(); 
    8181    _editor_url = Xinha._resolveRelativeUrl(path.join("/"), _editor_url); 
Note: See TracChangeset for help on using the changeset viewer.