From 1355f77ae22bd1f3559f4ff7aaab7420b5cd23f1 Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Sun, 12 Jan 2025 22:28:41 +0000 Subject: [PATCH] I2PSnark: add .asc and .md5 support in textView.js --- .../java/src/org/klomp/snark/web/I2PSnarkServlet.java | 5 +++-- apps/i2psnark/res/js/textView.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index 4e86be1e2c..b2f4de3315 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -4493,8 +4493,9 @@ else if (postParams.get("setInOrderEnabled") != null) { boolean isImage = mime.startsWith("image/"); boolean isText = mime.startsWith("text/") || mime.equals("application/javascript") || mime.equals("application/json") || mime.equals("application/xml") || - path.toLowerCase().endsWith(".url") || path.toLowerCase().endsWith(".ini") || - path.toLowerCase().endsWith(".bat") || path.toLowerCase().endsWith(".sh"); + path.toLowerCase().endsWith(".asc") || path.toLowerCase().endsWith(".bat") + path.toLowerCase().endsWith(".ini") || path.toLowerCase().endsWith(".md5") || + path.toLowerCase().endsWith(".sh") || path.toLowerCase().endsWith(".url"); boolean isPDF = mime.equals("application/pdf"); buf.append("