EncodingUtils.cs (jellyfin-10.8.9) | : | EncodingUtils.cs (jellyfin-10.8.10) | ||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
path = NormalizePath(path); | path = NormalizePath(path); | |||
return string.Format(CultureInfo.InvariantCulture, "{1}:\"{0}\"", pa th, inputPrefix); | return string.Format(CultureInfo.InvariantCulture, "{1}:\"{0}\"", pa th, inputPrefix); | |||
} | } | |||
/// <summary> | /// <summary> | |||
/// Normalizes the path. | /// Normalizes the path. | |||
/// </summary> | /// </summary> | |||
/// <param name="path">The path.</param> | /// <param name="path">The path.</param> | |||
/// <returns>System.String.</returns> | /// <returns>System.String.</returns> | |||
private static string NormalizePath(string path) | public static string NormalizePath(string path) | |||
{ | { | |||
// Quotes are valid path characters in linux and they need to be esc aped here with a leading \ | // Quotes are valid path characters in linux and they need to be esc aped here with a leading \ | |||
return path.Replace("\"", "\\\"", StringComparison.Ordinal); | return path.Replace("\"", "\\\"", StringComparison.Ordinal); | |||
} | } | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |