CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2015/02/27 10:38:19
Modified files:
usr.bin/ftp : fetch.c
Log message:
Fix URL-encoding of characters with the high order bit set.
Before/after:
127.0.0.1 - - [25/Feb/2015:09:39:24 +0100] "GET /h%ff%ffh%ff%ff.dat HTTP/1.0"
404 162 "-" "OpenBSD ftp"
127.0.0.1 - - [25/Feb/2015:09:39:27 +0100] "GET /h%c3%a9h%c3%a9.dat HTTP/1.0"
200 0 "-" "OpenBSD ftp"
Additionnally, avoid one case of undefined behaviour with ctype.h.
Input from guenther@, ok millert@