Merge pull request #1520 from dpalou/MOBILE-2574

MOBILE-2574 file: Fix avatar not seen when logged out
main
Juan Leyva 2018-09-20 14:30:31 +02:00 committed by GitHub
commit a5b79f6d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 '';
}