file_util: implement urlencode_path() helper
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 10:40:21 +0000 (11:40 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 Dec 2017 12:02:34 +0000 (13:02 +0100)
commit73e6c815a0813c143723b27c255f6a1190beb2a0
tree9da8adb677cd1b179e18bcd015f41c91bddaf20c
parent468158f01ea0cb891f586936217f1a765fd207b7
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