Plugin Directory

Changeset 846604


Ignore:
Timestamp:
01/28/2014 01:48:37 AM (12 years ago)
Author:
barteled
Message:

0.3 update - fix over escaping of characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • instruct/trunk/admin-menu.php

    r658436 r846604  
    7575      // Save text and order number for each step
    7676      $jumpto = NULL;
     77
    7778      foreach($_REQUEST as $key => $value){
    7879        if(preg_match('/text(\d+)/', $key, $number)){
    7980          $fields = array();
    8081          $id = $number[1];
    81           $fields['text'] = $value;
     82          $fields['text'] = stripcslashes($value);
    8283          $fields['picture'] = $_REQUEST['picture'.$id];
    8384          $fields['thumbnail'] = $_REQUEST['thumbnail'.$id];
    84          
     85
    8586          $result = $wpdb->update($diy_step_table,
    8687                                  $fields,
     
    108109        } elseif (preg_match('/textnew/', $key)) {
    109110          $step_fields = array();
    110           $step_fields['text'] = $value;
     111          $step_fields['text'] = stripcslashes($value);
    111112          $step_fields['picture'] = $_REQUEST['picturenew'];
    112113          $step_fields['thumbnail'] = $_REQUEST['thumbnailnew'];
     
    135136                              $diy_instruct_table,
    136137                              array(
    137                                   'title' => $_REQUEST['title'],
    138                                   'description' => $_REQUEST['description']
     138                                  'title' => stripcslashes($_REQUEST['title']),
     139                                  'description' => stripcslashes($_REQUEST['description'])
    139140                              ),
    140141                              array(
Note: See TracChangeset for help on using the changeset viewer.