Decrease maximum filename length for #77

This commit is contained in:
4pr0n 2014-06-25 00:26:57 -07:00
parent 7de64ffd5a
commit f8f3067099

View File

@ -261,8 +261,8 @@ public class Utils {
text = text.replaceAll("[^a-zA-Z0-9.-]", "_") text = text.replaceAll("[^a-zA-Z0-9.-]", "_")
.replaceAll("__", "_") .replaceAll("__", "_")
.replaceAll("_+$", ""); .replaceAll("_+$", "");
if (text.length() > 255) { if (text.length() > 100) {
text = text.substring(0, 254); text = text.substring(0, 99);
} }
return text; return text;
} }