-
Notifications
You must be signed in to change notification settings - Fork 6
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
files: fix upload of files with special characters in filename #324
Conversation
841d166
to
c1c208b
Compare
@@ -40,7 +40,7 @@ | |||
</ng-container> | |||
<ng-template #downloadLink> | |||
<ng-container *ngIf="showDownload && file.links.download; else noLink"> | |||
<a href="{{ file.links.download }}?download" *ngIf="showDownload && file.links.download"> |
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.
Why did you remove ngIf
the property showDownload
still used in the component?
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.
Because it is already in the line above:
<ng-container *ngIf="showDownload && file.links.download; else noLink">
Object.keys(file.links).forEach((key) => { | ||
if (['download', 'preview'].includes(key)) { | ||
if (file.links[key]) { | ||
file.links[key] = file.links[key].replace(file.key, file.key.normalize('NFD')); |
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.
I would use a pipe
instead. Original data should stay untouched.
c1c208b
to
de9ef31
Compare
Co-Authored-by: Valeria Granata <valeria@chaw.com>
de9ef31
to
719c8eb
Compare
This PR is stale because it has been open 6 months with no activity. |
Unicode normalize filenames
files: fix upload of files with special characters in filename sonar#901
files: fix upload of files with special characters in filename ng-core#523
Co-Authored-by: Valeria Granata valeria@chaw.com
Why are you opening this PR?
rero/sonar#861
Code review check list