federicoiosue/Omni-Notes

Bug Report: Locked Notes with '#' Character in the Title Can be Searched

Closed this issue · 0 comments

Description:

Expected behavior: After locking the note, users cannot get the note's content during searching.
For example. If a note contains a tag '#tag1' in the content and the note is locked, the '#tag1' can not be searched by the Search by Tag.

Bug: I have a note with a title that contains '#' and content that contains a tag '#tag1'. After locking this note, the '#tag1' can be still searched by the Search by Tag.

Reproduce steps:

  1. Create a note that have '#' in the title (e.g., 'title#' ) and a tag in the content (e.g., ''#tag)
  2. Lock the note
  3. Click the search
  4. Click the search by tag
  5. See the error: '#tag' appears in the list

Bug video:

As seen in the video, note1 with title1 and #tag1, note2 with title2# and #tag2. After locking them, you can search the #tag2 by the Search by Tag. That's weird.

bug_tag_search.mp4

Environment:

Omninotes Version: 6.3.1