A degenerate parabolic equation modelling the spread of an epidemics