Plugin Directory

Changeset 785535 for landing-pages


Ignore:
Timestamp:
10/09/2013 08:33:08 PM (12 years ago)
Author:
adbox
Message:

Security issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • landing-pages/trunk/modules/module.utils.php

    r784722 r785535  
    66add_action( 'init', 'inbound_meta_debug' );
    77if (!function_exists('inbound_meta_debug')) {
    8     function inbound_meta_debug(){
    9     //print all global fields for post
    10     if (isset($_GET['debug'])) {
     8    function inbound_meta_debug()
     9    {
     10        //print all global fields for post
     11        if (isset($_GET['debug']) && ( isset($_GET['post']) && is_numeric($_GET['post']) ) )
     12        {
    1113            global $wpdb;
    1214            $data   =   array();
     
    1618                WHERE `post_id` = ".mysql_real_escape_string($_GET['post'])."
    1719            ");
     20           
    1821            foreach($wpdb->last_result as $k => $v){
    1922                $data[$v->meta_key] =   $v->meta_value;
Note: See TracChangeset for help on using the changeset viewer.