WordPress.org

Ready to get started?Download WordPress

Forums

Len Slider
[resolved] Single quotes getting double escaped on text strings? (12 posts)

  1. stahnke939
    Member
    Posted 1 year ago #

    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/

  2. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. stahnke939
    Member
    Posted 1 year ago #

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

    Thanks,
    Scott

  4. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. TeslAndroid
    Member
    Posted 1 year ago #

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

  6. hightechware
    Member
    Posted 1 year ago #

    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

  7. hightechware
    Member
    Posted 1 year ago #

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

  8. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

    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));

  9. stahnke939
    Member
    Posted 1 year ago #

    That works great. Thanks Igor.
    -Scott

  10. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

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

  11. hightechware
    Member
    Posted 1 year ago #

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

  12. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.