file_util: implement urlencode_path() helper
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 10:40:21 +0000 (11:40 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 8 Dec 2017 12:46:46 +0000 (13:46 +0100)
commita6bb5cb3751d0c01edc1d115201635a735c37a73
tree6bf4cc2d1192213c8b244aff7c076be8949125bc
parent098e774563a928fe7a9506c51c71412ffa2d1c1f
file_util: implement urlencode_path() helper

Introduce a helper function urlencode_path() which can be used to encode
problematic characters in package file names.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Tested-by: Rafał Miłecki <rafal@milecki.pl>
libopkg/file_util.c
libopkg/file_util.h