Privilege matching -- allow JS anchors. Fixes #9550
Attempts to detect a special case where a file does not actuallyexist, and yet should be allowed since it is used by JavaScript.
So long as the anchor name doesn't contain any characters that might letit evade other checks, allow it through.
(cherry picked from commit bdbd8534eef5b93370065340de225a1cd5e5faa8)
Privilege matching -- allow JS anchors. Fixes #9550
Attempts to detect a special case where a file does not actually
exist, and yet should be allowed since it is used by JavaScript.
So long as the anchor name doesn't contain any characters that might let
it evade other checks, allow it through.
(cherry picked from commit bdbd8534eef5b93370065340de225a1cd5e5faa8)