mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 02:49:21 +02:00
fix EncodeURLElement string types
This commit is contained in:
parent
2648f8151d
commit
a462acdb19
@ -432,6 +432,7 @@ Type
|
||||
// writing to socket
|
||||
EHTTPClientSocketWrite = Class(EHTTPClientSocket);
|
||||
|
||||
Function EncodeURLElement(const S : AnsiString) : AnsiString;
|
||||
Function EncodeURLElement(const S : UnicodeString) : UnicodeString;
|
||||
Function DecodeURLElement(const S : AnsiString) : AnsiString;
|
||||
function DecodeURLElement(const S: UnicodeString): UnicodeString;
|
||||
@ -455,6 +456,11 @@ Const
|
||||
|
||||
|
||||
function EncodeURLElement(const S: UnicodeString): UnicodeString;
|
||||
begin
|
||||
Result:=UTF8Decode(EncodeURLElement(UTF8Encode(S)));
|
||||
end;
|
||||
|
||||
function EncodeURLElement(const S : AnsiString) : AnsiString;
|
||||
|
||||
Const
|
||||
NotAllowed = [ ';', '/', '?', ':', '@', '=', '&', '#', '+', '_', '<', '>',
|
||||
|
Loading…
Reference in New Issue
Block a user