Skip to content

Commit

Permalink
fix(DH): Prevent XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Nov 29, 2023
1 parent 998c2e2 commit c1c3371
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<gn-ui-content-ghost ghostClass="h-32" [showContent]="fieldReady('abstract')">
<p
class="whitespace-pre-line break-words"
[innerHTML]="metadata.abstract | safe: 'html'"
[innerHTML]="metadata.abstract"
*ngIf="metadata.abstract"
></p>
</gn-ui-content-ghost>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
alt="thumbnail"
loading="lazy"
(load)="setObjectFit()"
[src]="imgUrl | safe: 'url'"
[src]="imgUrl"
(error)="useFallback()"
/>
</div>
36 changes: 0 additions & 36 deletions libs/util/shared/src/lib/pipes/SafePipe.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/util/shared/src/lib/pipes/index.ts

This file was deleted.

5 changes: 2 additions & 3 deletions libs/util/shared/src/lib/util-shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core'
import { SafePipe } from './pipes/SafePipe'
import { CommonModule } from '@angular/common'
import { ImageFallbackDirective } from './image-fallback.directive'

@NgModule({
declarations: [SafePipe, ImageFallbackDirective],
declarations: [ImageFallbackDirective],
imports: [CommonModule],
exports: [SafePipe, ImageFallbackDirective],
exports: [ImageFallbackDirective],
})
export class UtilSharedModule {}

0 comments on commit c1c3371

Please sign in to comment.