Permalink
Browse files

Fix to mwf.server for redirect with infinite loop protection [#135]

  • Loading branch information...
1 parent c7a9b18 commit e84b801d5628d4a63c1271b75b51c4855015f04e @ebollens ebollens committed Apr 15, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 root/assets/js/core/server.js
  2. +1 −0 root/assets/js/core/server.src.js
Oops, something went wrong.
@@ -100,6 +100,7 @@ mwf.server = new function(){
if(loc.indexOf('?') == -1) loc += "?";
if(loc.indexOf('?') < loc.length-1) loc += "&";
loc += "no_server_init";
+ window.location = loc;
}else if(this.mustRedirect && !mwf.override.isRedirecting){
window.location = site.asset.root+'/passthru.php?return='+encodeURIComponent(window.location)+'&mode='+mwf.browser.getMode();
}

0 comments on commit e84b801

Please sign in to comment.