Username:
TITLE
Can save modsecurity config when user use french language
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.41
Ubuntu 20
PROBLEM DESCRIPTION
When user use french language, modsecurity configuration can't be saved
STEPS TO REPRODUCE
ACTUAL RESULT
Saving don't work
EXPECTED RESULT
Saving should work
ANY ADDITIONAL INFORMATION
In Chrome dev console, you can see this error :
When going to "sources" tab :
Error is on the messages.push, the french sentence uses unslashed single quote character
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Can save modsecurity config when user use french language
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.41
Ubuntu 20
PROBLEM DESCRIPTION
When user use french language, modsecurity configuration can't be saved
STEPS TO REPRODUCE
- In "Tools & Settings" > "Plesk Appearance" > "Languages", set "fr-FR" as default language
- In "Profile & preferences", selecte "Français" as administrator's language and save
- Go in "Outils & paramètres" > "Pare-feu applicatif (modsecurity)" and try to save, this don't work
ACTUAL RESULT
Saving don't work
EXPECTED RESULT
Saving should work
ANY ADDITIONAL INFORMATION
In Chrome dev console, you can see this error :
Code:
Uncaught SyntaxError: missing ) after argument list
at general:431:64
at Array.forEach (<anonymous>)
at general:431:18
When going to "sources" tab :
Code:
AdminPanel.WebAppFirewall.confirmation = function () {
const data = {"currentWebServer":"apache","currentRuleSet":"comodo_free","isCustomized":true,"needPresetWarning":false};
const {currentWebServer, currentRuleSet, isCustomized, needPresetWarning} = data;
const messages = [];
if (document.getElementById('ruleEngine-DetectionOnly').checked && needPresetWarning) {
messages.push('L'activation des deux options Détection uniquement et Complet peut entraîner des difficultés liées au <a href="https://github.com/SpiderLabs/ModSecurity/issues/562" target="_blank"> problème ModSecurity</a>, par exemple, un site WordPress qui ne fonctionne pas.');
}
Error is on the messages.push, the french sentence uses unslashed single quote character
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
Last edited by a moderator: