akanshSirohi / akanshSirohi/ShareX
Escape quotes in filenames
- Vorherrschende Sprache
- Java
- Sterne
- 295
- Forks
- 20
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Describe the bug**
Can't download any files with a single quote in the name. For example, the following error when trying to download this file:
`near "s": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT ID FROM T_HIST WHERE PATH='/storage/emulated/0/Books/Android's Dream, The - John Scalzi.epub'`
Clearly this is a problem, as files can have single quotes in their names. It also concerns me that there is a huge potential for SQL overflow bugs here, as filenames are obviously not being properly escaped...
**Steps To Reproduce**
Steps to reproduce the behavior:
1. Select a file with a single quote in the name `'`.
2. Try to download from the menu.
**Device Details (please complete the following information):**
- Version: Android 11
- Device: Moaan InkPlus
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.