Apostrophe converts to \'

Discussion in 'ClassiCraft WordPress Theme' started by findproz, Apr 9, 2013.

  1. findproz

    findproz Guest

    Joined:
    Jun 22, 2012
    Messages:
    8
    Likes Received:
    1
    Minor fix here: I typed an apostrophe in the listing description and when I viewed it on the homepage it showed as \'
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Do let us know your website link.
     
  3. kwatog

    kwatog Guest

    Joined:
    Apr 12, 2013
    Messages:
    8
    Likes Received:
    0
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Please provide the following information listed below.
    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:
    Send this information on our email at [email protected]
     
  5. kwatog

    kwatog Guest

    Joined:
    Apr 12, 2013
    Messages:
    8
    Likes Received:
    0
    gourav, it's been several days and no update from your support. Please advise.
     
  6. kwatog

    kwatog Guest

    Joined:
    Apr 12, 2013
    Messages:
    8
    Likes Received:
    0
    I've fixed this. Here's part of what I did.
    In the template_ad_new.php, I modified the following lines (starting at line 90)

    PHP:
        #$cc_post_title = $wpdb->escape(unserialize(base64_decode($posted['cc_title'])));
                
    $cc_post_title unserialize(base64_decode($posted['cc_title']));
                
    $cc_my_post = array(
                    
    #'post_content' => $wpdb->escape(unserialize(base64_decode($posted['cc_description']))),
                    
    'post_content' => unserialize(base64_decode($posted['cc_description'])),
    Actually, I don't kow why we have to escape there when escaping is already done when we call wp_insert_post.

    There are additional changes I made but I think this is the main culprit.
     

Share This Page