Skip to content

Commit

Permalink
Escape double quotes when migrating portal settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronweeden committed Feb 20, 2024
1 parent 15704b4 commit 1b84a76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/OpenXdmod/Migration/ConfigFilesMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ protected function writeModulePortalSettingsFile(
// portal_settings file.
foreach ($data as $sectionName => $sectionData) {
foreach ($sectionData as $key => $value) {
$settings[$sectionName . '_' . $key] = $value;
$settings[$sectionName . '_' . $key] = str_replace(
'"',
'\\"',
$value
);
}
}

Expand Down

0 comments on commit 1b84a76

Please sign in to comment.