delphi-blocks / WiRL

WiRL: RESTful Library for Delphi
https://wirl.delphiblocks.dev/
Apache License 2.0
238 stars 84 forks source link

function SmartConcat destroys queryparams if one contains a colon character #50

Open fperana opened 7 months ago

fperana commented 7 months ago

This code:

    if IsAbsoluteUrl(LValue) then
      Result := LValue
    else
      Result := Result + LValue;

will overwrite any previous parameter if a subsequent one contains the colon character in its payload.

This can be resolved by correctly encoding the parameters' string, which is now broken in WiRL 4.5.

paolo-rossi commented 5 months ago

Hello @fperana,

can you post a sample of such a parameter?