Skip to content
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

[stable27] fix(files): sanitize name and ext display #39333

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

skjnldsv
Copy link
Member

Backport of 28c2d9e from #38950

@skjnldsv skjnldsv added this to the Nextcloud 27.0.1 milestone Jul 12, 2023
@skjnldsv skjnldsv requested a review from a team July 12, 2023 11:53
@skjnldsv skjnldsv self-assigned this Jul 12, 2023
@skjnldsv skjnldsv requested review from susnux, nfebe and szaimen and removed request for a team July 12, 2023 11:53
@skjnldsv
Copy link
Member Author

/compile amend /

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the backport/38950/stable27 branch from f6d3451 to ea37d1a Compare July 12, 2023 12:05
<span class="files-list__row-name-text">{{ displayName }}</span>
<span class="files-list__row-name-text">
<!-- Keep the displayName stuck to the extension to avoid whitespace rendering issues-->
<span class="files-list__row-name-name" v-text="displayName" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the mustache notation everywhere else, sure we want to mix with the v-text notation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because otherwise we have whitespace in the output too.
Vue does NOT trim whitespace. And for this specific example, we want to have none rendered. :)

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 12, 2023
@blizzz blizzz mentioned this pull request Jul 12, 2023
@blizzz blizzz merged commit e9b5821 into stable27 Jul 12, 2023
@blizzz blizzz deleted the backport/38950/stable27 branch July 12, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants