mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
lang stuff
This commit is contained in:
@@ -652,7 +652,7 @@ class AdminController extends AdminBaseController
|
||||
|
||||
if (!$this->admin->authorize($xss_whitelist)) {
|
||||
if ($issue = Utils::detectXss($data['content'])) {
|
||||
$this->admin->setMessage('Save failed: Found potential XSS code of type: <strong>' . $issue . '</strong>, please remove or disable the XSS filter in <strong>Configuration</strong> / <strong>Security</strong>.',
|
||||
$this->admin->setMessage(sprintf($this->admin->translate('PLUGIN_ADMIN.XSS_ISSUE'), $issue),
|
||||
'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -724,3 +724,12 @@ PLUGIN_ADMIN:
|
||||
STRICT_YAML_COMPAT_HELP: "Falls back to Symfony 2.4 YAML parser if Native or 3.4 parser fails"
|
||||
STRICT_TWIG_COMPAT: "Twig Compatibility"
|
||||
STRICT_TWIG_COMPAT_HELP: "Enables deprecated Twig autoescape setting. When disabled, |raw filter is required to output HTML as Twig will autoescape output"
|
||||
SECURITY: "Security"
|
||||
XSS_SECURITY: "XSS Security"
|
||||
XSS_WHITELIST_PERMISSIONS: "Whitelist Permissions"
|
||||
XSS_WHITELIST_PERMISSIONS_HELP: "Users with these permissions will skip the XSS rules when saving content"
|
||||
XSS_RULES: "Rules"
|
||||
XSS_RULES_HELP: "Be careful when tweaking these rules, a broken regex will break things badly!"
|
||||
XSS_RULE_LABEL: "Label"
|
||||
XSS_RULE_REGEX: "Regex"
|
||||
XSS_ISSUE: "Save failed: Found potential XSS code of type: <strong>%s</strong>, please remove or disable the XSS filter in <strong>Configuration</strong> / <strong>Security</strong>."
|
||||
|
||||
Reference in New Issue
Block a user