Skip to content

Commit 71932c6

Browse files
authored
Merge pull request #4593 from dpalou/MOBILE-4770
MOBILE-4770 more: Decode QR scan URL before treating it
2 parents b18e58f + fea51e7 commit 71932c6

File tree

1 file changed

+2
-1
lines changed
  • src/core/features/mainmenu/pages/more

1 file changed

+2
-1
lines changed

src/core/features/mainmenu/pages/more/more.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { CoreViewer } from '@features/viewer/services/viewer';
2727
import { CoreSharedModule } from '@/core/shared.module';
2828
import { CoreMainMenuUserButtonComponent } from '../../components/user-menu-button/user-menu-button';
2929
import { CoreContentLinksHelper } from '@features/contentlinks/services/contentlinks-helper';
30+
import { CoreUrl } from '@singletons/url';
3031

3132
/**
3233
* Page that displays the more page of the app.
@@ -160,7 +161,7 @@ export default class CoreMainMenuMorePage implements OnInit, OnDestroy {
160161

161162
// Check if it's a URL.
162163
if (/^[^:]{2,}:\/\/[^ ]+$/i.test(text)) {
163-
await CoreContentLinksHelper.visitLink(text, {
164+
await CoreContentLinksHelper.visitLink(CoreUrl.decodeURI(text), {
164165
checkRoot: true,
165166
openBrowserRoot: true,
166167
});

0 commit comments

Comments
 (0)