akanshSirohi / akanshSirohi/ShareX

Escape quotes in filenames

オープン
#88 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Java
スター
295
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

説明

**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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。