compilatio / moodle-plagiarism_compilatio

Compilatio.net plagiarism plugin for Moodle
4 stars 9 forks source link

Error displaying language strings in assign submissions #122

Closed Kemmotar83 closed 2 months ago

Kemmotar83 commented 4 months ago

Hi,

when displaying the result in "submissions page", using the Italian language, the html breaks. The language strings "aiscore" and "ai_score_not_included ", that should be displayed in the popup window, are partially displayed in the main report object (you can see the screenshot below).

image

I thought immediately of a specific language error but, after some tests, it seems the problems could be related to a wrong (or missing) parsing of special characters. In the Italian version we have quotes which break HTML.

Regards, Giorgio

nr-Compilatio commented 4 months ago

Effectivelly, single quotes may break HTML. We have made a request to update Italian strings. Waiting for validation.

Kemmotar83 commented 4 months ago

Hi,

I don't think this is the solution. You cannot change Italian language, since those quotes are correct. I think the solution should be the correct handling of special characters.

Thanks, Giorgio

nr-Compilatio commented 2 months ago

Hello, A fix is on PLUGIN_320_DEV branch. It will be published in plugin 3.2.0.