Skip to content

resultset: fix agent escape string

ivan tkachenko requested to merge work/ratijas/sql-escape-kf5 into kf5

If agent name had ' in it, it was not escaped properly. This replaces ' with \' so the string doesn't escape early.

For example (agent = 'Baldur's Gate Dark Alliance') broke the query.

Testing: Make a desktop file in ~/.local/applications with app name that has ' in it and run plasmashell with QT_LOGGING_RULES="*.debug=true;qt.*=false;org.kde.plasma.pulseaudio=false" plasmashell --replace

(cherry picked from commit 5f7ec2dc)

(manually cherry-picked because of merge conflict due to clang-format changes in between)

Merge request reports

Loading