• Resolved stahnke939

    (@stahnke939)


    I’m having a problem with backslashes getting added in front of apostrophes/single quotes in banner_text and banner_title. I did a test where I added a \’ in a title string and \\\’ was added to the database record (two backslashes added). Entries with just one single quote get written to the database as \’

    I found the record in wp_options and the backslashes are in the record. It seems like this is happening on input. Any ideas? Could there be some php setting on my server that is affecting this?

    examples:
    http://www.ccolife.org/w/

    Thanks Again,
    Scott

    http://wordpress.org/extend/plugins/len-slider/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Igor Sazonov

    (@tigusigalpa)

    Hi, Scott!
    Thanks for question! Really I forgot about it, in 2nd version will be fix, do you need it now?

    Thread Starter stahnke939

    (@stahnke939)

    I’ll probably deploy the site in a couple weeks. When will 2nd version be out?

    Thanks,
    Scott

    Plugin Author Igor Sazonov

    (@tigusigalpa)

    I can put the fix here. I hope LenSlider2 will be released at start of February… hope =)

    Hi! Thanks for the plugin. I have the same issue. How can I fix it by myself?

    Hi Igor! Good plugin, but we have same problem as on top…
    Any news about new release? I tought to add a stripslashes somewhere, but I don’t know where… Any clue?
    thanks,
    marco

    Only workaround we have now is to use html entities (aka "), but my client will never stand those snags…

    Plugin Author Igor Sazonov

    (@tigusigalpa)

    hi for all! sorry for late LenSlider2 with a lot of fixes)
    ok, fix for 1.2:
    /wp-content/plugins/len-slider/lib/lenslider.class.php:925
    for($i=0;$i<count($array[1]);$i++) $html_out = str_ireplace("%{$array[1][$i]}%", $slider_banner[$array[1][$i]], $html_out);
    replace to:
    for($i=0;$i<count($array[1]);$i++) $html_out = stripcslashes(str_ireplace("%{$array[1][$i]}%", $slider_banner[$array[1][$i]], $html_out));

    Thread Starter stahnke939

    (@stahnke939)

    That works great. Thanks Igor.
    -Scott

    Plugin Author Igor Sazonov

    (@tigusigalpa)

    Welcome, Scott! Sorry for late answer) LenSlider2 coming…)

    Thanks Igor, works fine! Another question (out of topic): where can I set slider speed?

    Plugin Author Igor Sazonov

    (@tigusigalpa)

    Hi, hightechware!
    Sorry for late answer) unfortunately, now is only at js file, in autorotate line. In LenSlider2 all be via admin, sorry about late 2nd version prepare)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Single quotes getting double escaped on text strings?’ is closed to new replies.