The publication of the Muhammad cartoons first by a Danish newspaper and then by some European newspapers sparked protests and riots around the world , in which dozens of people have died in recent weeks .