mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: ignore tomcat from KurentoJsonRpcServer. Allow - and _ in customSessionId
parent
8fe3605aeb
commit
01b76d1892
|
@ -187,6 +187,11 @@
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-websocket</artifactId>
|
<artifactId>spring-websocket</artifactId>
|
||||||
</exclusion>
|
</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>
|
<exclusion>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class FormatChecker {
|
||||||
|
|
||||||
public boolean isValidCustomSessionId(String customSessionId) {
|
public boolean isValidCustomSessionId(String customSessionId) {
|
||||||
// Alphanumeric string
|
// Alphanumeric string
|
||||||
return customSessionId.matches("[a-zA-Z0-9]+");
|
return customSessionId.matches("[a-zA-Z0-9_-]+");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue