From f8f3067099004bbecf8116db471f3df0f4583e2b Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Wed, 25 Jun 2014 00:26:57 -0700 Subject: [PATCH] Decrease maximum filename length for #77 --- src/main/java/com/rarchives/ripme/utils/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index 50a828ff..16c3ad28 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -261,8 +261,8 @@ public class Utils { text = text.replaceAll("[^a-zA-Z0-9.-]", "_") .replaceAll("__", "_") .replaceAll("_+$", ""); - if (text.length() > 255) { - text = text.substring(0, 254); + if (text.length() > 100) { + text = text.substring(0, 99); } return text; }