+1 for fixing this.
That said, it will never be really right, and you will surely found case
when it is worse, but it may also oppose security and functionality.
Actually, my feeling is that it will be better with your change most of the
time in term of functionality, with a currently acceptable security risk.
--
Denis Gervalle
SOFTEC sa - CEO