-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix unsanitized untrusted input v2 #20092
base: develop
Are you sure you want to change the base?
Conversation
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Fixed
Show fixed
Hide fixed
projects/core/src/occ/adapters/product/converters/product-name-normalizer.ts
Fixed
Show fixed
Hide fixed
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Fixed
Show fixed
Hide fixed
projects/core/src/occ/adapters/product/converters/product-name-normalizer.ts
Fixed
Show fixed
Hide fixed
...product-configurator/rulebased/components/show-more/configurator-show-more.component.spec.ts
Outdated
Show resolved
Hide resolved
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Outdated
Show resolved
Hide resolved
projects/core/src/occ/adapters/product/converters/product-name-normalizer.ts
Outdated
Show resolved
Hide resolved
…re/CXSPA-8078-v2
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Outdated
Show resolved
Hide resolved
projects/core/src/occ/adapters/product/converters/product-name-normalizer.ts
Outdated
Show resolved
Hide resolved
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Fixed
Show fixed
Hide fixed
projects/core/src/occ/adapters/product/converters/product-name-normalizer.ts
Dismissed
Show dismissed
Hide dismissed
...libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts
Dismissed
Show dismissed
Hide dismissed
Merge Checks Failed
|
Merge Checks Failed
|
import { Product } from '../../../../model/product.model'; | ||
import { Converter } from '../../../../util/converter.service'; | ||
import { OccConfig } from '../../../config/occ-config'; | ||
import { Occ } from '../../../occ-models/occ.models'; | ||
import { SanitizeService } from '@spartacus/core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class SanitizeService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before I told only that if adding @angular/platform-browser
as a peerDependency is a breaking change, to workaround we can create a wrapper in the core lib. But Kris confirmed that this peerDependency is safe, in this case we don't need a wrapper.
IMO creating new services files should solve some problem, if we don't have any problem with '@angular/platform-browser'
as a peerDependency of product-configurator, there is no need to produce additional code.
providedIn: 'root', | ||
}) | ||
export class SanitizeService { | ||
constructor(private sanitizer: DomSanitizer) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As wrote above, I think we don't need this service, but just a reminder for the future - we should use inject instead of constructors for the DI. It will help to avoid breaking changes in feature, since any change in the constructor is breaking for customers
ticket: CXSPA-8078