diff --git a/src/providers/filepool.ts b/src/providers/filepool.ts index d0a9b1e83..237fefa08 100644 --- a/src/providers/filepool.ts +++ b/src/providers/filepool.ts @@ -418,7 +418,7 @@ export class CoreFilepoolProvider { protected logger; protected appDB: SQLiteDB; - protected tokenRegex = new RegExp('(\\?|&)token=([A-Za-z0-9]+)'); + protected tokenRegex = new RegExp('(\\?|&)token=([A-Za-z0-9]*)'); protected queueState: string; protected urlAttributes = [ this.tokenRegex, diff --git a/src/providers/utils/url.ts b/src/providers/utils/url.ts index 094640ea8..4f463276e 100644 --- a/src/providers/utils/url.ts +++ b/src/providers/utils/url.ts @@ -74,7 +74,7 @@ export class CoreUrlUtilsProvider { * @return {string} Fixed URL. */ fixPluginfileURL(url: string, token: string, siteUrl: string): string { - if (!url || !token) { + if (!url) { return ''; }