We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30bf16 commit c5bb3afCopy full SHA for c5bb3af
1 file changed
app/src/main/java/com/openipc/decoder/Decoder.java
@@ -881,7 +881,10 @@ private void rtspConnect() throws Exception {
881
}
882
// Strip userinfo from the request-line URL: credentials belong only in the
883
// Authorization header — including them in the URL leaks them to server access logs.
884
- String rtspUrl = uri.buildUpon().userInfo(null).build().toString();
+ String path = uri.getEncodedPath();
885
+ String rtspUrl = uri.getScheme() + "://" + host
886
+ + (port >= 0 ? ":" + port : "")
887
+ + (path != null ? path : "");
888
889
int seq = 1;
890
String desc = "DESCRIBE " + rtspUrl + " RTSP/1.0\r\n" +
0 commit comments