Fixed regression in /r/ security due to Servlet 2.5 rollback

Change-Id: Id7e882cf48689ace8910718e0091207f8e8c6912