When I used to have an out door cat, she had a collar on with a magnet for the cat flap. All sorts of stuff used to get stuck to it, nails, screws, once she came with a stanley knife blade stuck to it!!
I changed the flap then for one of the chip ones. I only have indoor cats now so no need for a collar, they are all chipped though.