Apostrophes get slashed

Apostrophes get slashed

Julia Osteen
Number of replies: 6

When adding a new question, if there is an apostrophe in the question text a slash is added by moodle and then we get an error message saying the question could not be created.

We are using the latest version of Moodle on a Windows server running IIS. Last year we used a hosted solution and didn't have this problem but that was 1.8 on a Linux server.

평균 등급 : -
In reply to Julia Osteen

Re: Apostrophes get slashed

Tim Hunt
Core developers 사진 Documentation writers 사진 Particularly helpful Moodlers 사진 Peer reviewers 사진 Plugin developers 사진
You don't say which version you are using, nor which question type. This bug crops up occasionally, but I think all known instances of it have been fixed. If you can reproduce it, please give us specific details.
In reply to Tim Hunt

Re: Apostrophes get slashed

Julia Osteen
We are using moodle 1.9.2 on a Windows server running IIS. Specifically, we've noticed this happening with an essay question and a multiple choice question.
In reply to Julia Osteen

Re: Apostrophes get slashed

Marty Watson
We add a summary to the course page, the apostrophe's are turning into multiple slashes as well.
In reply to Marty Watson

Re: Apostrophes get slashed

Tim Hunt
Core developers 사진 Documentation writers 사진 Particularly helpful Moodlers 사진 Peer reviewers 사진 Plugin developers 사진
If this is happening somewhere like the course summary as well, then that suggests to me that it is a general problem on Windows-, rather than a quiz-specific problem. I just tested on my system (Linux/Apache/Postgres) and I don't see this problem.


In reply to Julia Osteen

Re: Apostrophes get slashed

Jonathan Harker
Have you checked your PHP configuration has the "magic_quotes_gpc" flag set to "off"?

See the manual page for more information: http://php.net/magic_quotes
평균 등급 :Useful (1)
In reply to Jonathan Harker

Re: Apostrophes get slashed

Luis de Vasconcelos
Particularly helpful Moodlers 사진
Setting "magic_quotes_gpc" to "off" worked for me on Windows Server 2003, IIS 6 and Moodle 1.9.3. Thanks.