]> git.koha-community.org Git - koha.git/commit
Bug 23093: (bug 22318 follow-up) Use placeholders in query moving OpacNavRight
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 11 Jun 2019 14:24:28 +0000 (09:24 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 Jun 2019 07:50:04 +0000 (09:50 +0200)
commit3e31200f29b7c26a2d0e1d0fa311fc1bdcc70cb3
tree7bd3530d96c3d81ef864bb0cf411bf38ea50be4d
parentae0bda4f70a48ef9a2b0f62c6b1aeb7f305fbe66
Bug 23093: (bug 22318 follow-up) Use placeholders in query moving OpacNavRight

Placeholders must be used (!) in all SQL queries.

Test plan:
1/ % git checkout 0c95e22afe13349b60d134217fce6718bfa9727f # commit before bug 22318
2/ Edit the pref OpacNavRight with something with "
  just a " and more '
3/ git checkout master
4/ restart_all
5/ run updatedatabase.pl
=> Boom and the content of the pref has been lost
6/ Repeat 1 to 3
7/ Apply this patch
8/ run updatedatabase.pl
=> The pref has been correctly moved to opac_news

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 18f2074f8df8598527ae8e126c4efc7f3be000e0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
installer/data/mysql/updatedatabase.pl