The old getSuffix() code was quite wasteful, and can be replaced completely with strrchr().
Attach a file by drag & drop or click to upload