Unverified Commit e8afaf8b authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

Merge: element-web: escape JSON string (#369762)

parents f585e482 77e361e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  jq,
  element-web-unwrapped,
@@ -22,7 +23,7 @@ else
      mkdir -p $out
      ln -s ${element-web-unwrapped}/* $out
      rm $out/config.json
      jq -s '.[0] * $conf' "${element-web-unwrapped}/config.json" --argjson "conf" '${builtins.toJSON conf}' > "$out/config.json"
      jq -s '.[0] * $conf' "${element-web-unwrapped}/config.json" --argjson "conf" ${lib.escapeShellArg (builtins.toJSON conf)} > "$out/config.json"

      runHook postInstall
    '';