[PATCH] Divelogs.de import: encode + character on password

Thiago Macieira thiago at macieira.org
Mon Feb 22 10:43:17 PST 2016


On segunda-feira, 22 de fevereiro de 2016 20:11:22 PST Miika Turkia wrote:
> Upload seems to work as is...
> 

> -	body.addQueryItem("pass", ui.password->text());
> +	body.addQueryItem("pass", ui.password->text().replace("+", "%2b"));

Correct, as the documentation says:

    \note This method does not treat spaces (ASCII 0x20) and plus ("+") signs
    as the same, like HTML forms do. If you need spaces to be represented as
    plus signs, use actual plus signs.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



More information about the subsurface mailing list