Josef Zlomek (12020-07-28): > Fixes: 8814 > > The logic for removing ".." path components and their corresponding > upper directories was reworked. > > Now, the function trim_double_dot_url splits the path by "/" into > components, and processes the components one ny one: > - if the component is "..", the last path component in output buffer is > removed > - if the component is not empty, it is added to the output buffer > No temporary buffers are used anymore. > > Also the path containing no '/' after '://' is returned as it is. > > The duplicate logic was removed from ff_make_absolute_url.
I am afraid ff_make_absolute_url() as it is is broken beyond repair. For example: http://server/menu redirect?url=http://otherserver/target => redirect?url=http://otherserver/target while the result should have been http://server/redirect?url=http://otherserver/target I will have a shot at rewriting it cleanly, with proper parsing of URL components. Regards, -- Nicolas George
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".