Skip to content

Conversation

@anuarkaliyev23
Copy link
Contributor

Adding escape in title parsing

Adding escape in title parsing
@anuarkaliyev23 anuarkaliyev23 changed the title Fixes #171 Fixes #171 — Unescaped titles in bookmarks causing braindrop to crash Sep 3, 2025
@davep davep added Bug Something isn't working Priority: High I really want to get to this right away (ish) labels Sep 3, 2025
"collection",
f"{PUBLIC_ICON if self.data.collection(self.raindrop.collection).public else PRIVATE_ICON}"
f" {self.data.collection(self.raindrop.collection).title}",
f" {escape(self.data.collection(self.raindrop.collection).title)}",
Copy link
Owner

Choose a reason for hiding this comment

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

As noted in a comment in #171 this wouldn't seem to actually address what you think is the cause of the problem. Let's keep this here anyway -- it's sensible that this does get escaped and it always should have been -- but I think we might want to add a couple more calls to escape elsewhere too, depending on what problem you're actually seeing and what the actual cause is.

@davep
Copy link
Owner

davep commented Sep 4, 2025

As it turns out, this doesn't directly address #171 in that this adds escaping to the collection title, not a bookmark title. As it stands this is still a good thing to do anyway so I'll merge this in.

Thanks!

@davep davep merged commit 2691231 into davep:main Sep 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Priority: High I really want to get to this right away (ish)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants