Decrease maximum filename length for #77
This commit is contained in:
parent
7de64ffd5a
commit
f8f3067099
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user