Commit eea00381 authored by Duncan Salerno's avatar Duncan Salerno Committed by Martin Storsjö

url: Handle relative urls being just a new query string

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent a6363e3d
......@@ -3417,6 +3417,12 @@ void ff_make_absolute_url(char *buf, int size, const char *base,
if (path_query != NULL)
*path_query = '\0';
/* Is relative path just a new query part? */
if (rel[0] == '?') {
av_strlcat(buf, rel, size);
return;
}
/* Remove the file name from the base url */
sep = strrchr(buf, '/');
if (sep)
......
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