Apostrophes get slashed

Apostrophes get slashed

by 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.

Average of ratings: -
In reply to Julia Osteen

Re: Apostrophes get slashed

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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

by 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

by 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

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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

by 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
Average of ratings:Useful (1)
In reply to Jonathan Harker

Re: Apostrophes get slashed

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