only in patch2: unchanged: --- a/modules/filter/filter.test +++ b/modules/filter/filter.test @@ -73,6 +73,19 @@ class FilterCRUDTestCase extends DrupalWebTestCase { } /** + * Test the sanitization of filter name. + */ + function testTextFormatNameXss() { + // Add a text format with minimum data only. + $format = new stdClass(); + $format->format = 'empty_format'; + $format->name = ''; + filter_format_save($format); + $this->drupalGet('filter/tips'); + $this->assertNoRaw($format->name, 'Text format name contains no xss.'); + } + + /** * Verifies that a text format is properly stored. */ function verifyTextFormat($format) {