Skip to content

Commit

Permalink
Fix token issue with "_" in appname
Browse files Browse the repository at this point in the history
  • Loading branch information
SelimEmre committed Apr 4, 2021
1 parent 84344a0 commit 3c23410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/antmedia/filter/TokenFilterManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ public static String getStreamId(String requestURI) {
requestURI = requestURI.replaceAll(REPLACE_CHARS_REGEX, "_");

int endIndex;
int startIndex = requestURI.lastIndexOf('/');
int startIndex = requestURI.indexOf('/');

requestURI = requestURI.split("streams")[1];

if(requestURI.contains("_")) {
//if multiple files with same id requested such as : 541211332342978513714151_480p_1.mp4
Expand Down

0 comments on commit 3c23410

Please sign in to comment.