Skip to content

Conversation

@ChristophWurst
Copy link
Member

  • Resolves: #

Summary

This avoids rendering issues with certain characters.

TODO

  • ...

Checklist

@ChristophWurst
Copy link
Member Author

/backport to stable32

@ChristophWurst
Copy link
Member Author

/backport to stable31

@ChristophWurst
Copy link
Member Author

/backport to stable30

@ChristophWurst
Copy link
Member Author

/backport to stable29

@ChristophWurst
Copy link
Member Author

/backport to stable28

Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

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

No problem with that, but shouldn't it be handled directly by addBodyListItem instead?

@ChristophWurst
Copy link
Member Author

No problem with that, but shouldn't it be handled directly by addBodyListItem instead?

No because sometimes we want the HTML to render, e.g. for the strike-through formatting of event updates.

@kesselb kesselb force-pushed the fix/dav/escape-summary-description-location branch from d24a1d9 to 66bbd40 Compare December 9, 2025 19:18
@kesselb
Copy link
Contributor

kesselb commented Dec 9, 2025

Error: apps/dav/lib/CalDAV/Schedule/IMipService.php:79:109: LessSpecificReturnType: The inferred return type 'string' for OCA\DAV\CalDAV\Schedule\IMipService::generateDiffString is more specific than the declared return type 'null|string' (see https://psalm.dev/088)

@kesselb
Copy link
Contributor

kesselb commented Dec 9, 2025

Error: apps/dav/lib/CalDAV/Schedule/IMipService.php:79:109: LessSpecificReturnType: The inferred return type 'string' for OCA\DAV\CalDAV\Schedule\IMipService::generateDiffString is more specific than the declared return type 'null|string' (see https://psalm.dev/088)

I assume Psalm was unable to detect the return type for Sabre\VObject\Property::getValue. Now with the value being wrapped in htmlspecialchars it's always a string. Yet I'm not sure if we can trust sabre's return type annotations 🙈

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 10, 2025
@ChristophWurst ChristophWurst force-pushed the fix/dav/escape-summary-description-location branch from 766027b to dac8818 Compare December 10, 2025 11:51
@kesselb kesselb merged commit ac4e82d into master Dec 10, 2025
184 of 189 checks passed
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: caldav Related to CalDAV internals feature: dav

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants