Skip to content

Commit

Permalink
Merge pull request #1814 from aaronweeden/portal-settings-migration-e…
Browse files Browse the repository at this point in the history
…scape-quotes

Escape double quotes when migrating portal settings.
  • Loading branch information
aaronweeden authored Feb 20, 2024
2 parents 15704b4 + 1b84a76 commit 4961fb8
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 4961fb8

Please sign in to comment.