Index: branches/1.1.x/platform/inc/ajax.js =================================================================== diff -u -N -r13088 -r14142 --- branches/1.1.x/platform/inc/ajax.js (.../ajax.js) (revision 13088) +++ branches/1.1.x/platform/inc/ajax.js (.../ajax.js) (revision 14142) @@ -76,7 +76,7 @@ } Request.processRedirect = function($request) { - var $match_redirect = new RegExp('^#redirect#(.*)').exec($request.responseText); + var $match_redirect = new RegExp('^#redirect#(.*?)($|\\s.*)').exec($request.responseText); if ($match_redirect != null) { // redirect to external template requested window.location.href = $match_redirect[1]; Index: branches/1.1.x/platform/inc/jquery/thickbox/thickbox.js =================================================================== diff -u -N -r13088 -r14142 --- branches/1.1.x/platform/inc/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 13088) +++ branches/1.1.x/platform/inc/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14142) @@ -349,7 +349,7 @@ } TB.parseRedirect = function ($data) { - var $match_redirect = new RegExp('^#redirect#(.*)').exec($data); + var $match_redirect = new RegExp('^#redirect#(.*?)($|\\s.*)').exec($data); if ($match_redirect != null) { // redirect to external template requested return $match_redirect[1];