mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Sanitise intent URL (#6297)
This commit is contained in:
parent
2332401dbf
commit
68ebeda5c8
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ export const ExternalPlayerButton: React.FC<IExternalPlayerButtonProps> = ({
|
||||||
const streamURL = new URL(stream);
|
const streamURL = new URL(stream);
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
const scheme = streamURL.protocol.slice(0, -1);
|
const scheme = streamURL.protocol.slice(0, -1);
|
||||||
streamURL.hash = `Intent;action=android.intent.action.VIEW;scheme=${scheme};type=video/mp4;S.title=${encodeURI(
|
streamURL.hash = `Intent;action=android.intent.action.VIEW;scheme=${scheme};type=video/mp4;S.title=${encodeURIComponent(
|
||||||
title
|
title
|
||||||
)};end`;
|
)};end`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue