返回提交历史
Modified
src/controllers/api/loginController.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
fix: uri decode clientMod parameter (#3512)
Express is _supposed_ to do this for us but for some reason the string still contained %20, causing the conditionals to never be true. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3512 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
79086ffd
代码差异
1 个文件
+2
-2
@@ -212,8 +212,8 @@ const createLoginResponse = (request: Request, account: IDatabaseAccountJson, bu
212
212
let raw = JSON.stringify(resp);
213
213
if (
214
214
clientMod &&
215
clientMod.startsWith("OpenWF Bootstrapper v") &&
216
version_compare(clientMod.substring(21), "0.12.0") >= 0
215
decodeURIComponent(clientMod).startsWith("OpenWF Bootstrapper v") &&
216
version_compare(decodeURIComponent(clientMod).substring(21), "0.12.0") >= 0
217
217
) {
218
218
const tunables = getTunablesForClient((request.socket.address() as AddressInfo).address, myAddress);
219
219
if (version_compare(buildLabel, gameToBuildVersion["16.5.5"]) < 0) {