Skip to content

Commit c068f57

Browse files
authored
fix(forge): validate only input and not length (pterodactyl#4528)
Only allows digits, dots and dashes in the input, which is what Forge versions consists of. Removes arbitrary char limit.
1 parent f8ec8b4 commit c068f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/Seeders/eggs/minecraft/egg-forge-minecraft.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "PTDL_v2",
55
"update_url": null
66
},
7-
"exported_at": "2022-06-17T08:11:14+03:00",
7+
"exported_at": "2022-11-06T06:33:01-05:00",
88
"name": "Forge Minecraft",
99
"author": "support@pterodactyl.io",
1010
"description": "Minecraft Forge Server. Minecraft Forge is a modding API (Application Programming Interface), which makes it easier to create mods, and also make sure mods are compatible with each other.",
@@ -67,12 +67,12 @@
6767
},
6868
{
6969
"name": "Forge Version",
70-
"description": "Gets an exact version.\r\n\r\nEx. 1.15.2-31.2.4\r\n\r\nOverrides MC_VERSION and BUILD_TYPE. If it fails to download the server files it will fail to install.",
70+
"description": "The full exact version.\r\n\r\nEx. 1.15.2-31.2.4\r\n\r\nOverrides MC_VERSION and BUILD_TYPE. If it fails to download the server files it will fail to install.",
7171
"env_variable": "FORGE_VERSION",
7272
"default_value": "",
7373
"user_viewable": true,
7474
"user_editable": true,
75-
"rules": "nullable|string|max:25",
75+
"rules": "nullable|regex:\/^[0-9\\.\\-]+$\/",
7676
"field_type": "text"
7777
}
7878
]

0 commit comments

Comments
 (0)