Skip to content

Commit

Permalink
Fix URL info notice on cancelled redirect (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrvigg committed Apr 17, 2023
1 parent 8c9e672 commit b2b7c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function qtranxf_init_language() {
// But we can't redirect (e.g. AJAX request or CLI command), or the request is detected as doing_admin.
// So we leave a potential bug but we avoid any HTTP interference that could break some functionalities.
// TODO: we should log these events for the admin, they should not be left unnoticed.
$url_info['doredirect'] .= ' - cancelled by ' . $can_redirect ? 'can_redirect' : 'doing_admin';
$url_info['doredirect'] .= ' - cancelled by ' . ( ! $can_redirect ? 'can_redirect' : 'doing_admin' );
}

// TODO clarify fix url to prevent xss - how does this prevents xss?
Expand Down

0 comments on commit b2b7c16

Please sign in to comment.