Skip to content

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

Merged
blizzz merged 1 commit into
stable27from
backport/38950/stable27
Jul 12, 2023
Merged

[stable27] fix(files): sanitize name and ext display#39333
blizzz merged 1 commit into
stable27from
backport/38950/stable27

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

Backport of 28c2d9e from #38950

@skjnldsvskjnldsv added this to the Nextcloud 27.0.1 milestone Jul 12, 2023
@skjnldsv
skjnldsv requested a review from a teamJuly 12, 2023 11:53
@skjnldsvskjnldsv self-assigned this Jul 12, 2023
@skjnldsv
skjnldsv requested review from nfebe, susnux and szaimen and removed request for a teamJuly 12, 2023 11:53
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/compile amend /

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
<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
Copy Markdown
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
Copy Markdown
MemberAuthor

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. :)

@szaimenszaimen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🐘

@skjnldsvskjnldsv 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
@blizzzblizzz mentioned this pull request Jul 12, 2023
@blizzz
blizzz merged commit e9b5821 into stable27Jul 12, 2023
@blizzz
blizzz deleted the backport/38950/stable27 branch July 12, 2023 17:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@skjnldsv@susnux@szaimen@blizzz