aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-03-02 10:09:26 +0300
committerRblSb <msrblsb@gmail.com>2025-03-03 00:51:38 +0300
commitaed0d8ed6865a3e966fa866af4b99f5d4b4d33eb (patch)
treec6c0274dc824f15855af4534747e5d36433e42a0 /src/client/players
parent3b22ce9b59e1e549dddbba99b90b87a1dc1fcf87 (diff)
Improve upload filename encoding
Diffstat (limited to 'src/client/players')
-rw-r--r--src/client/players/Raw.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/players/Raw.hx b/src/client/players/Raw.hx
index f51bd9e..5a037c3 100644
--- a/src/client/players/Raw.hx
+++ b/src/client/players/Raw.hx
@@ -54,7 +54,7 @@ class Raw implements IPlayer {
var title = titleInput.value.trim();
if (title.length == 0) {
- final decodedUrl = url.urlDecode();
+ final decodedUrl = try url.urlDecode() catch (e) url;
final lastPart = decodedUrl.substr(decodedUrl.lastIndexOf("/") + 1);
if (matchName.match(lastPart)) title = matchName.matched(1);
else title = Lang.get("rawVideo");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage