WordPress.org

Plugin Directory

Changeset 636826


Ignore:
Timestamp:
12/10/12 23:18:11 (17 months ago)
Author:
pross
Message:

Fix false positive for eval() js was triggering with parent.eval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • theme-check/trunk/checks/badthings.php

    r503927 r636826  
    77 
    88        $checks = array( 
    9             '/(?<![_|a-z0-9])eval\s?\(/i' => __( 'eval() is not allowed.', 'themecheck' ), 
     9            '/(?<![_|a-z0-9|\.])eval\s?\(/i' => __( 'eval() is not allowed.', 'themecheck' ), 
    1010            '/[^a-z0-9](?<!_)(popen|proc_open|[^_]exec|shell_exec|system|passthru)\(/' => __( 'PHP sytem calls should be disabled by server admins anyway!', 'themecheck' ), 
    1111            '/\s?ini_set\(/' => __( 'Themes should not change server PHP settings', 'themecheck' ), 
Note: See TracChangeset for help on using the changeset viewer.