Follow up for issue #378

The previous commit was not complete. Fixes more XSS found on members search.