Addslashes not needed in files/index.php?acti on=edit

Addslashes not needed in files/index.php?acti on=edit

by Jaime Villate -
Number of replies: 0
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.
Average of ratings: -