Merge pull request #1520 from dpalou/MOBILE-2574
MOBILE-2574 file: Fix avatar not seen when logged outmain
commit
a5b79f6d6c
|
@ -418,7 +418,7 @@ export class CoreFilepoolProvider {
|
||||||
|
|
||||||
protected logger;
|
protected logger;
|
||||||
protected appDB: SQLiteDB;
|
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 queueState: string;
|
||||||
protected urlAttributes = [
|
protected urlAttributes = [
|
||||||
this.tokenRegex,
|
this.tokenRegex,
|
||||||
|
|
|
@ -74,7 +74,7 @@ export class CoreUrlUtilsProvider {
|
||||||
* @return {string} Fixed URL.
|
* @return {string} Fixed URL.
|
||||||
*/
|
*/
|
||||||
fixPluginfileURL(url: string, token: string, siteUrl: string): string {
|
fixPluginfileURL(url: string, token: string, siteUrl: string): string {
|
||||||
if (!url || !token) {
|
if (!url) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue