Sanitise intent URL (#6297)

This commit is contained in:
feederbox826 2025-11-18 21:28:20 -05:00 committed by GitHub
parent 2332401dbf
commit 68ebeda5c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`;