Plugin Directory

Changeset 1664980


Ignore:
Timestamp:
05/25/2017 08:51:47 PM (9 years ago)
Author:
mideal
Message:

Fixed vulnerability

Location:
question-answer-faq
Files:
15 added
2 edited

Legend:

Unmodified
Added
Removed
  • question-answer-faq/trunk/mideal-faq.php

    r1664815 r1664980  
    491491    $post_data = array(
    492492        'post_title'    => wp_strip_all_tags( $_POST['mideal_faq_name'] ),
    493         'post_content'  => $_POST['mideal_faq_question'],
     493        'post_content'  => wp_strip_all_tags( $_POST['mideal_faq_question'] ),
    494494        'post_status'   => 'pending',
    495495        'post_type'  => 'mideal_faq',
     
    498498    $post_id = wp_insert_post( $post_data );
    499499    if( $post_id ){
    500         update_post_meta( $post_id, 'mideal_faq_email', $_POST['mideal_faq_email'] );
     500        if( is_email( $_POST['mideal_faq_email'] ) ){
     501            update_post_meta( $post_id, 'mideal_faq_email', $_POST['mideal_faq_email'] );
     502        }
    501503
    502504
  • question-answer-faq/trunk/readme.txt

    r1588420 r1664980  
    55Requires at least: 3.0
    66Tested up to: 4.7.2
    7 Stable tag: 1.1
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4848- Select avatars answer
    4949
     50= 1.1.1 =
     51Fixed vulnerability
     52
     53
    5054== Upgrade Notice ==
    5155
     
    5963- Select the name of responsible
    6064- Select avatars responsible
     65= 1.1.1 =
     66Fixed vulnerability
Note: See TracChangeset for help on using the changeset viewer.