The visitors took the lead just five minutes in when Lloyd James lashed an unstoppable drive into the roof of the net from the edge of the area.
Adam Lallana hit the bar and Michail Antonio the post for Saints before their keeper Kelvin Davis saved a Kevin O'Connor penalty after a handball.
Legge levelled six minutes from time by powering in a header from close-range.
BBC