Work-around for a bug in Chrome's XSS auditor
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Jun 2017 09:39:34 +0000 (11:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Jun 2017 09:39:34 +0000 (11:39 +0200)
wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserMailForm.class.php

index b4456c5a75f27283a439a0f2289f1dd5eacbcf87..86bc313f1752bc906c59c0e8388d59670df49af4 100644 (file)
@@ -237,17 +237,6 @@ class TemplateAddForm extends AbstractForm {
                ]);
        }
        
-       /**
-        * @inheritDoc
-        */
-       public function show() {
-               parent::show();
-               
-               // work-around for a known Chrome bug that causes the XSS auditor
-               // to incorrectly detect JavaScript inside a textarea
-               @header('X-XSS-Protection: 0');
-       }
-       
        /**
         * @inheritDoc
         */
index 65a5aadfc08057c74f82d5c30233631854217e6e..719fee2f281984eff583cbeae3c8f12f70082a5d 100755 (executable)
@@ -207,17 +207,6 @@ class UserMailForm extends AbstractForm {
                ]);
        }
        
-       /**
-        * @inheritDoc
-        */
-       public function show() {
-               parent::show();
-               
-               // work-around for a known Chrome bug that causes the XSS auditor
-               // to incorrectly detect JavaScript inside a textarea
-               @header('X-XSS-Protection: 0');
-       }
-       
        /**
         * @inheritDoc
         */