Issue Details (XML | Word | Printable)

Key: MDL-9691
Type: Bug Bug
Status: Resolved Resolved
Resolution: Not a bug
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Sergio Mazzarelli
Votes: 1
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Online Text Assignments appear truncated if they contain apostrophes

Created: 03/May/07 02:17 PM   Updated: 21/May/07 08:33 PM
Component/s: Assignment
Affects Version/s: 1.7.1
Fix Version/s: None

Issue Links:
Duplicate
 

Participants: Martin Dougiamas, Pieterjan Heyse and Sergio Mazzarelli
Security Level: None
Resolved date: 11/May/07
Affected Branches: MOODLE_17_STABLE


 Description  « Hide
Online Text Assignments containing apostrophes appear truncated to everyone except the student when he or she presses Edit my Assignment. This is NOT due to students cutting and pasting from Word, and it does not depend on the browser used (IE or Firefox). I was able to reproduce the problem myself. For example, if I log in as a student , type a few sentences in an assignment and then make one sentence containing an apostrophe bold using the HTML editor, everything after the sentence in bold disappears after submitting. If I click Edit my Submission, however, I can see everything I typed. If I log in as a teacher, I can only see the sentence in bold and t the counter only counts the words in bold. Even if inline comment is turned on and I press Grade, I cannot see the other sentences, but only the one in bold. The same happens when inserting paragraph codes. In all cases, if all codes are removed or if the apostrophe is removed, the text reappears in its entirety. This issue has a serious impact on the grading of assignments which require formatting, such as multiparagraph essays.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Sergio Mazzarelli added a comment - 03/May/07 04:11 PM
I have just discovered that the same issue affect forum posts as well. Multiparagraph posts in 1.7.1 will be truncated if they contain apostrophes. The same thing will happen if bold or italic formatting is applied to a sentence containing an apostrophe. This is worse than the Online Text Assignment problem in that there is no way to recover what the student originally wrote.

Sergio Mazzarelli added a comment - 07/May/07 06:03 PM
I do not know whether this is important, but I am using Debian Etch, PHP 5.2.0.8.3, and MySQL 5.0.32.

Martin Dougiamas added a comment - 11/May/07 03:05 PM
Yes, it's a known bug with that version of PHP

http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg343159.html

Upgrade or downgrade PHP.


Pieterjan Heyse added a comment - 21/May/07 08:33 PM
I fixed this by adding this to /etc/apt/sources.list

deb http://people.debian.org/~seanius/php5/etch ./

then doing:

apt-get update; apt-get upgrade