Skip to content

resultset: fix agent escape string

Akseli Lahtinen requested to merge work/cherry-pick-5f7ec2dc into Plasma/6.0

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)

Merge request reports

Loading