mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Sanitise intent URL (#6297)
This commit is contained in:
@@ -29,7 +29,7 @@ export const ExternalPlayerButton: React.FC<IExternalPlayerButtonProps> = ({
|
||||
const streamURL = new URL(stream);
|
||||
if (isAndroid) {
|
||||
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
|
||||
)};end`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user