Commit 1da2cf20 authored by Mikhail Zabaluev's avatar Mikhail Zabaluev

Fixed a run-off-the-end error in url_query_as_header_string

parent 271b9b65
......@@ -2118,7 +2118,10 @@ char *url_query_as_header_string(su_home_t *home,
if (b_start)
break;
b_start = i + n + 1, b_len = strcspn(s + b_start, "&");
i = b_start + b_len + 1;
i = b_start + b_len;
if (!s[i])
break;
i++;
continue;
}
if (i != j)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment