diff --git a/.gitignore b/.gitignore index d296c653..98f3e40c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ common/**/*.js.map test/coverage test/backend/**/*.js test/backend/**/*.js.map +test/common/**/*.js +test/common/**/*.js.map test/e2e/**/*.js test/e2e/**/*.js.map demo/TEMP/ @@ -20,3 +22,4 @@ users.db sqlite.db dist/ release/ +out-tsc/ diff --git a/backend/middlewares/user/AuthenticationMWs.ts b/backend/middlewares/user/AuthenticationMWs.ts index 9839c0e8..975f3948 100644 --- a/backend/middlewares/user/AuthenticationMWs.ts +++ b/backend/middlewares/user/AuthenticationMWs.ts @@ -162,8 +162,6 @@ export class AuthenticationMWs { return null; } - console.log(sharing); - if (Config.Client.Sharing.passwordProtected === true && (sharing.password)) { return null; } diff --git a/frontend/app/gallery/directory/directory.gallery.component.html b/frontend/app/gallery/directory/directory.gallery.component.html index 6de81773..d3d8fff5 100644 --- a/frontend/app/gallery/directory/directory.gallery.component.html +++ b/frontend/app/gallery/directory/directory.gallery.component.html @@ -7,7 +7,7 @@
-
diff --git a/frontend/app/gallery/directory/directory.gallery.component.ts b/frontend/app/gallery/directory/directory.gallery.component.ts index 4d0585ef..061f06dd 100644 --- a/frontend/app/gallery/directory/directory.gallery.component.ts +++ b/frontend/app/gallery/directory/directory.gallery.component.ts @@ -37,8 +37,11 @@ export class GalleryDirectoryComponent implements OnInit, OnDestroy { } getSanitizedThUrl() { - return this._sanitizer.bypassSecurityTrustStyle('url(' + encodeURI(this.thumbnail.Src).replace(/\(/g, '%28') - .replace(/\)/g, '%29') + ')'); + return this._sanitizer.bypassSecurityTrustStyle('url(' + + encodeURI(this.thumbnail.Src) + .replace(/\(/g, '%28') + .replace(/'/g, '%27') + .replace(/\)/g, '%29') + ')'); } // TODO: implement scroll