Plugin Directory

Changeset 2851769


Ignore:
Timestamp:
01/20/2023 10:11:29 AM (3 years ago)
Author:
codecorun
Message:

Sanitize $_GET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codecorun-coupon-discount-rules/trunk/admin/includes/codecorun-cdr-admin-class.php

    r2850632 r2851769  
    5252        //codemirror
    5353        if(isset($_GET['page'])){
    54             if($_GET['page'] == 'codecorun-wcdr'){
     54            $page = sanitize_text_field( $_GET['page'] );
     55            if( $page == 'codecorun-wcdr' ){
    5556                wp_enqueue_style(CODECORUN_CDR_PREFIX.'-codemirror-style', CODECORUN_CDR_URL.'admin/assets/codemirror.css');
    5657                wp_register_script( CODECORUN_CDR_PREFIX.'-codemirror-js', CODECORUN_CDR_URL.'admin/assets/codemirror.js', array('jquery') );
Note: See TracChangeset for help on using the changeset viewer.