Skip to content

Commit

Permalink
Merge branch 'release/1.8.44'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Sep 11, 2017
2 parents 937575c + c074263 commit 78ace2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/js/xe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ if(jQuery) jQuery.noConflict();
},

isSameHost: function(url) {
var base_url = window.XE.URI(window.request_uri).normalizePort();
var target_url = window.XE.URI(url).normalizePort();
var base_url = window.XE.URI(window.request_uri).normalizePort().normalizePathname();
var target_url = window.XE.URI(url).normalizePort().normalizePathname();

if(!target_url.hostname()) {
target_url = target_url.absoluteTo(window.request_uri);
Expand All @@ -1124,7 +1124,7 @@ if(jQuery) jQuery.noConflict();
base_url = base_url.hostname() + base_url.port() + base_url.directory();
target_url = target_url.hostname() + target_url.port() + target_url.directory();

return base_url === target_url;
return target_url.indexOf(base_url) === 0;
}
};

Expand Down
2 changes: 1 addition & 1 deletion common/js/xe.min.js

Large diffs are not rendered by default.

0 comments on commit 78ace2f

Please sign in to comment.