MOBILE-2574 file: Fix avatar not seen when logged out

main
dpalou 2018-09-17 09:43:58 +02:00
parent ab1c124713
commit 03cc175723
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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 '';
}