diff --git a/benefit-finder/package.json b/benefit-finder/package.json index fedd62b92..734c00323 100644 --- a/benefit-finder/package.json +++ b/benefit-finder/package.json @@ -28,14 +28,9 @@ "cy:dev:storybook": "NODE_ENV=test npm run cy:prebuild:storybook && storybook dev -p 6006", "cy:build:storybook": "NODE_ENV=test npm run cy:prebuild:storybook && storybook build --test", "cy:run:e2e": "NODE_ENV=test npx cypress run --browser chrome", - "cy:run": "NODE_ENV=test npm run cy:run:e2e", "cy:run:prod:e2e": "NODE_ENV=test npx cypress run --config-file cypress.prod.links.config.js --browser chrome", "cy:run:prod:links:e2e": "NODE_ENV=test npx cypress run --config-file cypress.prod.links.config.js --browser chrome", - "cy:run:pipeline": "NODE_ENV=test concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"http-server ./storybook-static --port 6006 --silent\" -Y", - "cy:run:edge:e2e": "NODE_ENV=test npx cypress run --browser edge", - "cy:run:firefox:e2e": "NODE_ENV=test npx cypress run --browser firefox", - "cy:run:webkit-safari:e2e": "NODE_ENV=test npx cypress run --browser webkit", - "cy:run:cross-browser:e2e": "NODE_ENV=test npm run cy:run:e2e && npm run cy:run:edge:e2e && npm run cy:run:firefox:e2e && cy:run:webkit-safari:e2e" + "cy:run:pipeline": "NODE_ENV=test concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"http-server ./storybook-static --port 6006 --silent\" -Y" }, "dependencies": { "@uswds/uswds": "^3.8.2", diff --git a/scripts/drush-post-deploy.sh b/scripts/drush-post-deploy.sh index 3e1c41892..bd95d7a3a 100755 --- a/scripts/drush-post-deploy.sh +++ b/scripts/drush-post-deploy.sh @@ -4,6 +4,7 @@ ## It reads lines based on new lines. echo "Updating drupal ... " +drush cr drush state:set system.maintenance_mode 1 -y drush cr drush updatedb --no-cache-clear -y diff --git a/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php b/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php index 9d1512661..637c03c84 100644 --- a/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php +++ b/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php @@ -320,6 +320,7 @@ public function getData($id) { "benefits" => $benefits, ]; $json = json_encode($result, JSON_PRETTY_PRINT); + $json = htmlspecialchars($json); if ($this->displayData) { print_r("
JSON Data
");