Bug 437361 - Description in the Dolphin status bar susceptible to the character "RIGHT-TO-LEFT OVERRIDE"
Summary: Description in the Dolphin status bar susceptible to the character "RIGHT-TO-...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: status (show other bugs)
Version: 21.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 13:00 UTC by Domker
Modified: 2024-08-25 08:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Dolphin reversed statusbar description (137.96 KB, image/png)
2021-05-19 13:00 UTC, Domker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Domker 2021-05-19 13:00:52 UTC
Created attachment 138560 [details]
Dolphin reversed statusbar description

SUMMARY
The description in the status bar is vulnerable to the U+202E (https://www.fileformat.info/info/unicode/char/202e/index.htm) character.
Other KDE applications may also be affected.

STEPS TO REPRODUCE
1. Open Konsole and type: fname=$(echo -e "test.txt\u202e")
2. Make new file with U202e char: echo "Some text" > $fname
3. Move the cursor over the created file with Dolphin and check the description on the status bar.

OBSERVED RESULT
The description content from the status bar is reversed back, while elsewhere it is displayed normally.

EXPECTED RESULT
Ignore U+202E and display the description correctly.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.4-arch1-2
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 980/PCIe/SSE2
Comment 1 David 2024-08-25 08:01:41 UTC
I disagree about completely ignoring the directional override, but it definitely shouldn't affect anything other that what comes between the override and the end of the string. It seems like the direction is switched during the parsing of the filename, and then it stays switched during subsequent unrelated string operations.