Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #238: Fix double-sanitization of error messages during Rules import #239

Open
wants to merge 1 commit into
base: 1.x-2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Issue #238: Fix double-sanitization of error messages during Rules im…
…port.
bugfolder committed Jun 23, 2024
commit dcf2b3989a1fdc580637071dc081c7baaa327a83
4 changes: 2 additions & 2 deletions ui/ui.forms.inc
Original file line number Diff line number Diff line change
@@ -635,7 +635,7 @@ function rules_ui_import_form_validate($form, &$form_state) {
$rules_config->integrityCheck();
}
catch (RulesIntegrityException $e) {
form_set_error('import', t('Integrity check for the imported configuration failed. Error message: %message.', array('%message' => $e->getMessage())));
form_set_error('import', t('Integrity check for the imported configuration failed. Error message: !message', array('!message' => $e->getMessage())));
}
if (!user_access('bypass rules access') && !$rules_config->access()) {
form_set_error('import', t('You have insufficient access permissions for importing this Rules configuration.'));
@@ -723,7 +723,7 @@ function rules_ui_import_file_form_validate($form, &$form_state)
try {
$rules_config->integrityCheck();
} catch (RulesIntegrityException $e) {
form_set_error('import', t('Integrity check for the imported configuration failed. Error message: %message.', array('%message' => $e->getMessage())));
form_set_error('import', t('Integrity check for the imported configuration failed. Error message: !message', array('!message' => $e->getMessage())));
}
if (!user_access('bypass rules access') && !$rules_config->access()) {
form_set_error('import', t('You have insufficient access permissions for importing this Rules configuration.'));