WordPress.org

Ready to get started?Download WordPress

Forums

SS Quiz
[resolved] Apostrophe escaped with a slash makes wrong answer (3 posts)

  1. olenadmy
    Member
    Posted 1 year ago #

    Not sure if i'm doing something wrong, but here are the results i get

    Правильный ответ: my sister's boyfriend
    Ваш ответ: my sister\'s boyfriend

    apostrophe is with forward slash in multiple question.
    how to avoid it?

    http://wordpress.org/extend/plugins/ssquiz/

  2. ssvadim
    Member
    Plugin Author

    Posted 1 year ago #

    I can't find time to fix this bug.
    It is being solved by changing the line #350 client-side.php:
    from
    $temp2=explode("|", $_POST["answer"]);
    to
    $temp2=explode("|", esc_attr(stripslashes($_POST["answer"])));
    if you using one-by-one mode of quiz.

  3. olenadmy
    Member
    Posted 1 year ago #

    spasibo!

    [ mod note: I believe that is Russian for 'thank you' ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.