Fix XSS vulnerabilities in various Flash components

(cherry picked from commit 607bedc6435f091d9efb4e69486355296f5763d4)