When a teacher edits a file, any backslash is doubled in the text area (I'm not using the HTML editor). Thus, every time the file is saved, the number of backslashes doubles.
I think the addslashes function used on line 338 of files/index.php (version 1.46) is not necessary (see attached patch) since quotes and double quotes in the form's "textarea" are already converted into HTML entities and \ do not pose any problems in textareas.
The attached patch also removes an extra pair in the title that is not necessary.
General developer forum
Addslashes not needed in files/index.php?acti on=edit
This discussion has been locked so you can no longer reply to it.