tpl: Fix error with unicode in file paths
authorSam Smith <sams96@mail.com>
Sat, 7 Mar 2020 18:56:02 +0000 (18:56 +0000)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 9 Mar 2020 12:31:04 +0000 (13:31 +0100)
commitc4fa2f07996c7f1f4e257089a3c3c5b4c1339722
tree585cbe9deef705f97dd574000472e541a0cb5285
parent108314444b510bfc330ccac745dce7beccd52c91
tpl: Fix error with unicode in file paths

Add url.QueryUnescape before reading file which allows files with
unicode in their paths to be read.

Fixes #6996
tpl/data/data_test.go
tpl/data/resources.go