|
[
Permalink
| « Hide
]
Kenneth Newquist added a comment - 16/Oct/07 09:27 PM
[bump]
This bug remains in Moodle 1.8.3 (2007021534).
To recreate it: 1. Create an event with quotes in the header or single quotes in the body. This problem still exists in Moodle 1.9.1.
I verified the bug still exists in Moodle 1.9.1 (Build: 20080515). My proposed fix from way back in 1.7, however, is wrong; as that dealt with the logged version of the form name. I think the proper fix is to strip the slashes when loading the form data, and I've generated a patch that reflects that.
Hi Dongsheng, can you please take a look to this? TIA!
Ciao Hi, Kenneth, thanks your patch, stripshashes and addslashes are called several times during these process, single and double quotes will be escaped again, so your change is good.
Tested in 1.8 and 1.9. Closing.
reopening, when you remove magic quotes please double check that you are not creating sql injections
going to fix the code now... should be fixed now, please review and retest
Ugh. Sorry about that. I tested the updated file on my Moodle 1.9.1 (Build: 20080515) text site, and it worked perfectly. Thanks!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||