GUI-274: Better method for preventing arbitrary redirects