We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f77ebf + 71faa10 commit 8be8910Copy full SHA for 8be8910
obs-browser-source.cpp
@@ -425,6 +425,18 @@ void BrowserSource::Update(obs_data_t *settings)
425
n_reroute = obs_data_get_bool(settings, "reroute_audio");
426
427
if (n_is_local) {
428
+ n_url = CefURIEncode(n_url, false);
429
+
430
+#ifdef _WIN32
431
+ n_url.replace(n_url.find("%3A"), 3, ":");
432
+#endif
433
434
+ while (n_url.find("%5C") != std::string::npos)
435
+ n_url.replace(n_url.find("%5C"), 3, "/");
436
437
+ while (n_url.find("%2F") != std::string::npos)
438
+ n_url.replace(n_url.find("%2F"), 3, "/");
439
440
#if !ENABLE_LOCAL_FILE_URL_SCHEME
441
/* http://absolute/ based mapping for older CEF */
442
n_url = "http://absolute/" + n_url;
0 commit comments