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.-]", "_")
.replaceAll("__", "_")
.replaceAll("_+$", "");
if (text.length() > 255) {
text = text.substring(0, 254);
if (text.length() > 100) {
text = text.substring(0, 99);
}
return text;
}