Don't trust user input

Signed-off-by: Lehner Florian <dev@der-flo.net>