Bläddra i källkod

5 digit bridge

herlanS_ 2 år sedan
förälder
incheckning
59e52798bf

+ 1 - 1
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/BridgeFIlter.kt

@@ -68,7 +68,7 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
         val client = splitPath[1]
         val toPath = "/" + splitPath.takeLast(splitPath.size - 1).joinToString("/")
         val clientNumber = client.toIntOrNull()
-        if (clientNumber != null && clientNumber > 0 && clientNumber <= 999) {
+        if (clientNumber != null && clientNumber > 0 && clientNumber <= 99999) {
             val search = isResourceAvailable(toPath)
             if (search != null && !search.endsWith("assets/bootstrap.js")) {
                 res.sendRedirect("/resources/$search")