We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdb6f6 commit 8e85cbbCopy full SHA for 8e85cbb
1 file changed
index.js
@@ -6,6 +6,7 @@ const app = express();
6
7
const port = process.env.PORT || 3000;
8
const softdeletion = process.env.softdeletion || true;
9
+const maxPasteIDLength = process.env.maxpasteidlength || 10;
10
const agent = new https.Agent({ rejectUnauthorized: false }); // Disable SSL verification
11
12
@@ -20,7 +21,7 @@ const sanitizeId = (id) => {
20
21
return "ERR-INVALID-ID"
22
23
}
- if (sanitized.length > 50) {
24
+ if (sanitized.length >= maxPasteIDLength) {
25
return "ERR-TOO-LONG-ID"
26
27
return sanitized;
0 commit comments