MOBILE-2574 file: Fix avatar not seen when logged out
parent
ab1c124713
commit
03cc175723
|
@ -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,
|
||||
|
|
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue