Moodle is changing content in uploaded files

Moodle is changing content in uploaded files

by Randy Metzger -
Number of replies: 2

When I download my students Java programs I am getting HTML tags “&quot;” for “ as well as <pre><p> throughout their programs. It has not done this before. Any idea what is going on? (Moodle 1.7+, PHP 5.1.1, mysql 5.0.18, Windows 2003)
Example:

<pre><p> /* p6.java
March 2007
Program demonstrates how to work with string data,
including coverting numbers to number values from string values, etc.*/
import java.util.StringTokenizer;
public class p6
{
public static void main (String args[])
{
//testing convertDouble method
double a = convertDouble(&quot;$1,234,569.44&quot;);
System.out.printf(&quot;%.2f\n&quot;, a);

Double b = convertDouble(&quot;$359.00&quot;);
System.out.printf(&quot;%.2f\n&quot;, b);

double c = convertDouble(&quot;16 dollars&quot;);
System.out.printf(&quot;%.2f\n&quot;, c);

double d = convertDouble(&quot;$562&quot;);
System.out.printf(&quot;%.2f\n\n&quot;, d);
-------------------------------------------------------------------

Average of ratings: -
In reply to Randy Metzger

Re: Moodle is changing content in uploaded files

by Miroslav Fikar -
I can confirm this. We have the same problem with MATLAB files. But it occurs only with Firefox. Files downloaded with IE seem to be OK. It is very annoying.
In reply to Miroslav Fikar

Re: Moodle is changing content in uploaded files

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
See filter settings $CFG->filteruploadedfiles
wink