openvidu-server: ignore tomcat from KurentoJsonRpcServer. Allow - and _ in customSessionId

pull/391/head
pabloFuente 2020-02-04 14:01:02 +01:00
parent 8fe3605aeb
commit 01b76d1892
2 changed files with 6 additions and 1 deletions

View File

@ -187,6 +187,11 @@
<groupId>org.springframework</groupId>
<artifactId>spring-websocket</artifactId>
</exclusion>
<exclusion>
<!-- Until kurento-java spring-boot dependency is updated to 2.2.4.RELEASE -->
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>

View File

@ -31,7 +31,7 @@ public class FormatChecker {
public boolean isValidCustomSessionId(String customSessionId) {
// Alphanumeric string
return customSessionId.matches("[a-zA-Z0-9]+");
return customSessionId.matches("[a-zA-Z0-9_-]+");
}
}