Skip to content

Commit

Permalink
Fix bug: "*" stop working as path in stopStream, getStreamProperties
Browse files Browse the repository at this point in the history
- Add special case so that "*" isn't modified
- Fix regression created by #678
- Fix #681
  • Loading branch information
Merudo committed Sep 13, 2019
1 parent 034aa70 commit d3e5f19
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,15 @@ public static boolean getGlobalMute() {
}

/**
* Convert a string into a uri string. Spaces are replaced by %20, among other things
* Convert a string into a uri string. Spaces are replaced by %20, among other things. The string
* "*" is returned as-is
*
* @param string the string to convert
* @return the converted string
*/
public static String convertToURI(Object string) {
String strUri = string.toString().trim();
if (strUri.equals("*")) return strUri;
if (!isWeb(strUri) && !strUri.toUpperCase().startsWith("FILE")) {
strUri = "FILE:/" + strUri;
}
Expand Down

0 comments on commit d3e5f19

Please sign in to comment.