Opened 6 years ago

#14912 new bug

Tracker SelectRefs() doesn't escape file names

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/libtracker.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev52888.

You can script Tracker to select a file in a window by sending it a BMessage 'Tsel' with the ref of the file. If that file name contains forbidden characters, like '+[\', Tracker pops up an alert about an "Error in regular expression: 'Nested *?+.'"

This is seen in QuickLaunch, see Diver's ​ticket #30 about it.

I suppose, one has to CharacterEscape() at ​Tracker.cpp#n728, but I can't seem to make it work...

Change History (0)

Note: See TracTickets for help on using tickets.