Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Component/s: Messages
-
Labels:None
-
Environment:All
-
Database:MySQL
-
Affected Branches:MOODLE_16_STABLE
-
Fixed Branches:MOODLE_17_STABLE, MOODLE_18_STABLE
Description
We have just installed Moodle 1.6 and when we use any special char from Spanish, such á é or ñ, in the messaging system, the message is truncated exactly where the first special char appears.
From Eduardo Hernandez (eduardo at go2learn.cl) Monday, 17 July 2006, 02:46 AM:
I was looking in the source code, and in file send.php and in line 39 says
$message = optional_param('message', '', PARAM_CLEANHTML);
I changed it to
$message = optional_param('message', '', PARAM_RAW);
and now it works....
I don't if this is a final solution but it works
Eduardo
From Petr Skoda (skodak at centrum.cz) Monday, 17 July 2006, 03:35 AM:
That is definitely a bad idea to change type to PARAM_RAW because my might create a serious security problem!
It works fine for me on my test server, could you send me a testing login/password by email?
BTW did you try standard theme?
Hmm, I see you are using PHP 5.0.4 - that is strongly discouraged because there are known problems with it
From Eduardo Hernandez (eduardo at go2learn.cl) Monday, 17 July 2006, 11:55 PM:
Hi petr ,
Thanks so much for checking this. Well, I would like to give you some more details. As son as i type the message, it appears correctly in the current Window. however, if, later, I go and check the message history messages are truncated. If I go and take a look at the DB directly, I see that the messages are truncated in the DB.
Anyway, I will talk to our IT dept. to give you access to our server. I will contact you personally by e-mail with the user/pass.