mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
httpbf: Make sure to use unsigned number as the id
Else, we can have filename like foo-chunking--1234-4-0 and the double dash make the serverside regexp fail
This commit is contained in:
parent
e75f11b87a
commit
53b1edd1dc
@ -188,7 +188,7 @@ char* get_transfer_url( hbf_transfer_t *transfer, int indx ) {
|
||||
block = transfer->block_arr[indx];
|
||||
if( ! block ) return NULL;
|
||||
|
||||
if( asprintf(&res, "%s-chunking-%d-%d-%d", transfer->url, transfer->transfer_id,
|
||||
if( asprintf(&res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id,
|
||||
transfer->block_cnt, indx ) < 0 ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user