laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Fixed bug with unsupported unicode chars in files/pages names by embedded server #115

Closed sunlaud closed 9 years ago

sunlaud commented 9 years ago

Unicode chars in filenames result in url-encoded request paths with %XX symbols (e.g. /%D0%9F%D0%B8%D1%81%D1%8C...). Embedded server unable to find files on disk with such (encoded) name, so added decodeURIComponent() call to decode url.