-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
1.9.8
-
http://<moodle url>/mod/journal/report.php
-
MOODLE_19_STABLE
Journal Feedback Report page http://<moodle url>/mod/journal/report.php correctly saves entries with apostrophes & double quotes slash-escaped, but does not remove the slashes before dispalying when showing user entries.
E.g. can't shows up as can\'t
One possible fix is to add stripslashes to "p($entry->entrycomment);" like this:
function journal_print_user_entry($course, $user, $entry, $teachers, $grades) {
...
...
if ($entry->timemarked)
echo "<br /><textarea name=\"c$entry->id\" rows=\"12\" cols=\"60\" wrap=\"virtual\">";
p(stripslashes($entry->entrycomment));
echo "</textarea><br />";
echo "</td></tr>";
}
echo "</table><br clear=\"all\" />\n";
}
- is duplicated by
-
CONTRIB-4369 Journal feedback inserts backslashes before apostrophe and quote marks
-
- Closed
-