Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Small typo in Drupal\editor\Tests\EditorSecurityTest:
// Enable editor_test.module's hook_editor_xss_filter_alter() implementation
// to ater the text editor XSS filter class being used.
This should be 'alter' instead of ater.
Comment | File | Size | Author |
---|---|---|---|
#5 | editor-2307481-5.patch | 2.03 KB | cs_shadow |
Comments
Comment #1
cs_shadow CreditAttribution: cs_shadow commentedComment #2
Wim LeersGreat find.
However, committing just this is rather silly. I noticed that this class uses undocumented class properties. i.e. it used
$this>untrusted_user
,$this->normal_user
, etc., but they're not declared & documented as properties. Could you fix that as well? That makes committing this issue more worthwhile/less of a hassle for core committers.Thanks!
Comment #3
cs_shadow CreditAttribution: cs_shadow commentedChanges in this patch:
1. Documented class properties $untrusted_user, $normal_user, $trusted_user and $privileged_user.
2.
In comments, its mentioned that the code creates 3 users, but actually 4 users are created. Fixed the number to 4.
Comment #4
Wim LeersOne nitpick that needs to be fixed before I can RTBC it:
Should wrap at 80 cols.
Comment #5
cs_shadow CreditAttribution: cs_shadow commentedFixed the line wrap.
Comment #6
Wim LeersLovely, thanks!
Comment #7
Wim LeersComment #8
alexpottCommitted afd7cf9 and pushed to 8.x. Thanks!