Remove final query delimiter ';' from query digests

Only the delimiter present at the end of the digest will be removed.
Delimiters found in the middle of the full digest, like in the case of
multi-statements should be preserved.
pull/3952/head
Javier Jaramago Fernández 4 years ago
parent 1c51cac80a
commit 1b06049c41

@ -2511,7 +2511,7 @@ void final_stage(shared_st* shared_st, stage_1_st* stage_1_st, const options* op
{
// v1_crashing_payload_06
char* wspace = shared_st->res_cur_pos - 1;
while (wspace > shared_st->res_init_pos && *wspace == ' ') {
while (wspace > shared_st->res_init_pos && (*wspace == ' ' || *wspace == ';')) {
wspace--;
}
wspace++;

Loading…
Cancel
Save