[QGIS-Developer] PostGIS credentials

Paolo Cavallini cavallini at faunalia.it
Tue Feb 16 06:28:37 PST 2021


Hi Richard,

Il 16/02/21 14:39, Richard Duivenvoorde ha scritto:

> I do not think a sane user would want to end a username OR password with a space....
> This is asking for issues, everywhere in your toolchain ...
> 
> Would it not be better to just 'strip' username,dbname and passwd? From trailing (and starting) whitespace?

IMHO not: spaces are valid characters, and the software should not take
arbitrary decisions. But your solution will be better than the current
one for most users (except for the insane ;) ).
Cheers.
-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more


More information about the QGIS-Developer mailing list