rtrim is good for you. (import.php)

Signed-off-by: Nao <nao@wedge>
Fix for attachments and avatars.

Signed-off-by: Sven Rissmann <creaworld-media@gmx.de>
Kitchen stuff. (import.php)

Signed-off-by: Nao <nao@wedge>