Skip to content
Snippets Groups Projects
Commit 07c587d1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- small bugfix in drupal_goto

parent d7f911c9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -79,7 +79,12 @@ function drupal_goto($url) {
** is compiled with "--enable-trans-sid".
*/
header("Location: $url&". SID);
if (strstr($url, "?")) {
header("Location: $url&". SID);
}
else {
header("Location: $url?". SID);
}
}
function check_form($text) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment