Moodle

Online Text Assignments appear truncated if they contain apostrophes

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not a bug
  • Affects Version/s: 1.7.1
  • Fix Version/s: None
  • Component/s: Assignment
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE

Description

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.

Issue Links

Activity

Hide
Sergio Mazzarelli added a comment -

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.

Show
Sergio Mazzarelli added a comment - 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.
Hide
Sergio Mazzarelli added a comment -

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.

Show
Sergio Mazzarelli added a comment - 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.
Hide
Martin Dougiamas added a comment -

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.

Show
Martin Dougiamas added a comment - 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.
Hide
Pieterjan Heyse added a comment -

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

Show
Pieterjan Heyse added a comment - 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

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: