Jun 20 2008

Moodle 1.9: Feedback Slasher Bug

Published by Kenneth Newquist at 11:06 am under Moodle, Web Applications and tagged: ,




Yep, another problem with stripslashes, this while editing questions in the Feedback module for Moodle 1.9

To recreate the problem:

1. Create a Feedback.

2. Add a question with a quote or apostrophe in it.

3. Save the question.

4. Edit the question. The backslash should appear.

5. Save the question. The backslash is saved to the database.

They made some changes to it to separate out the HTML from the PHP code, and in doing so removed the stripslashes_safe function that was keeping the database escape slashes out of the questions.

Tracker report and patch here:

http://tracker.moodle.org/browse/MDL-15331

One response so far


Create a free edublog to get your own comment avatar (and more!)

One Response to “Moodle 1.9: Feedback Slasher Bug”

  1.   Kenneth Newquiston 01 Jul 2008 at 9:04 am

    My patch was accepted and should be in Moodle 1.9.1+.

    http://tracker.moodle.org/browse/MDL-15331

Trackback URI | Comments RSS

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image