lutraconsulting / qgis-discovery-plugin

Provides search / gazetteer functionality in QGIS using PostGIS-based data
http://www.lutraconsulting.co.uk/products/discovery/
GNU General Public License v2.0
15 stars 16 forks source link

Add re.escape() to make \ backslashes in search string safe for postgres #75

Closed stratiform closed 4 years ago

stratiform commented 4 years ago

Add re.escape() to make \ backslashes in search string safe for postgres

Bug was: search terms like "1\TP..." were coming up with null results, because postgres was not escaping the \ backslash character

saberraz commented 4 years ago

@stratiform thanks a lot for your contribution. We have released a new version of the plugin to QGIS (2.5.2) with your fix.

stratiform commented 4 years ago

No problem @saberraz @erpas ! Thank you for the excellent plugin!