Making WordPress.org

Changeset 3135


Ignore:
Timestamp:
05/13/2016 09:34:24 PM (8 years ago)
Author:
ocean90
Message:

Trac: Update trac-security.js.

Add more keywords and use the same selector to enable the submit button as it does to disable it.

Props jorbin.
Fixes #1701.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/trac-security.js

    r1058 r3135  
    1717            'escape', 'unescape', 'escaped', 'unescaped', 'escapes', 'escaping', 'unescaping', 'esc_',
    1818            'sanitize', 'unsanitize', 'sanitizes', 'unsanitizes', 'sanitized', 'unsanitized', 'sanitization',
    19             'valid', 'invalid', 'validate', 'validates', 'validation',
    20             'compromise', 'escalation', 'injection', 'forgery', 'password', 'passwords',
     19            'valid', 'invalid', 'validate', 'validates', 'validation','hack', 'vulnerable', 'attack',
     20            'compromise', 'escalation', 'injection', 'forgery', 'password', 'passwords', 'cross-site' ,
     21            'secure'
    2122        ],
    2223
     
    5152
    5253    function hide_box() {
    53         $( 'input[name="submit"]' ).prop( 'disabled', false );
     54        submit.prop( 'disabled', false );
    5455        $( '#sec_question' ).hide();
    5556    }
Note: See TracChangeset for help on using the changeset viewer.