summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-02-27 14:26:15 -0700
committermo khan <mo@mokhan.ca>2025-02-27 14:26:15 -0700
commit964e4c5f9a9934bf26d420deb68f35be914ae749 (patch)
tree53af70b1b6f408afdf46c6012210cbd28c709603 /bin
parent08f42d37248047ed8ccead2f30e3e76167139b6b (diff)
fix: Do not pass the safe_level argument to ERB.new
Diffstat (limited to 'bin')
-rwxr-xr-xbin/idp2
-rwxr-xr-xbin/sp2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/idp b/bin/idp
index daa15cc6..46c2cf9e 100755
--- a/bin/idp
+++ b/bin/idp
@@ -126,7 +126,7 @@ class IdentityProvider
</body>
</html>
ERB
- erb = ERB.new(template, nil, trim_mode: '-')
+ erb = ERB.new(template, trim_mode: '-')
html = erb.result(binding)
[200, { 'Content-Type' => "text/html" }, [html]]
end
diff --git a/bin/sp b/bin/sp
index 68a0e3db..9f95229a 100755
--- a/bin/sp
+++ b/bin/sp
@@ -110,7 +110,7 @@ class ServiceProvider
</body>
</html>
ERB
- erb = ERB.new(template, nil, trim_mode: '-')
+ erb = ERB.new(template, trim_mode: '-')
html = erb.result(binding)
[200, { 'Content-Type' => "text/html" }, [html]]
end