Fixed EZP-21959: Security: Siteaccess matching is loose, in legacy stack

review ping @glye, @lolautruche, @yannickroger