| View previous topic :: View next topic |
| Author |
Message |
Thomas Wegner Guest
|
Posted: Tue Nov 23, 2004 10:14 pm Post subject: Indy 10, Bug in TIdURI |
|
|
Hello. Who comment out this line in function URLDecode?:
ASrc := StringReplace(ASrc, '+', ' ', [rfReplaceAll]); {do not localize}
Since Indy 10 Files with spaces in Filename was not found with comment
out this line!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Wed Nov 24, 2004 8:25 pm Post subject: Re: Indy 10, Bug in TIdURI |
|
|
Do nobody understand my problem. I know, my english is
very bad. I can try to write it again.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> schrieb im Newsbeitrag
news:41a3b657 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello. Who comment out this line in function URLDecode?:
ASrc := StringReplace(ASrc, '+', ' ', [rfReplaceAll]); {do not localize}
Since Indy 10 Files with spaces in Filename was not found with comment
out this line!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Nov 24, 2004 9:36 pm Post subject: Re: Indy 10, Bug in TIdURI |
|
|
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote
| Quote: | Hello. Who comment out this line in function URLDecode?:
|
Someone with the initials "S.G", as shown in the comments directly above
that line of code.
| Quote: | Since Indy 10 Files with spaces in Filename was not found
with comment out this line!
|
Which Filename are you referring to? Please show your actual code that is
breaking.
Did you not read the comments directly above that line of code? That line
is intentionally commented out, the input to URLDecode() is not supposed to
include "+" encoded characters to begin with.
Gambit
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Wed Nov 24, 2004 9:50 pm Post subject: Re: Indy 10, Bug in TIdURI |
|
|
Hello,
the problem is in TidHTTPServer. When i have a request like
http://www.server.com/path/abc+def.jpg
then i get ARequestInfo.Document = '/path/abc+def.jpg' in Indy 10.
The real filename was "abc def.jpg"! I can not find the file, because
you do not decode the "+" to space!
With Indy 9 this run fine!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a4fe6c$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a3b657 (AT) newsgroups (DOT) borland.com...
Hello. Who comment out this line in function URLDecode?:
Someone with the initials "S.G", as shown in the comments directly above
that line of code.
Since Indy 10 Files with spaces in Filename was not found
with comment out this line!
Which Filename are you referring to? Please show your actual code that is
breaking.
Did you not read the comments directly above that line of code? That line
is intentionally commented out, the input to URLDecode() is not supposed
to
include "+" encoded characters to begin with.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Nov 24, 2004 10:57 pm Post subject: Re: Indy 10, Bug in TIdURI |
|
|
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote
That is not a properly encoded request. It should have been this instead:
http://www.server.com/path/abc%20def.jpg
Please show your actual code for formatting and sending the request.
| Quote: | With Indy 9 this run fine!
|
Indy 9 has the same line commented out in URLDecode().
Gambit
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Wed Nov 24, 2004 11:08 pm Post subject: Re: Indy 10, Bug in TIdURI |
|
|
Borlands HTTPEncode do this with + and in
my Indy 9 the line was active.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a51147$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a50213 (AT) newsgroups (DOT) borland.com...
When i have a request like
http://www.server.com/path/abc+def.jpg
That is not a properly encoded request. It should have been this instead:
http://www.server.com/path/abc%20def.jpg
Please show your actual code for formatting and sending the request.
With Indy 9 this run fine!
Indy 9 has the same line commented out in URLDecode().
Gambit
|
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Thu Nov 25, 2004 12:26 am Post subject: Re: Indy 10, Bug in TIdURI |
|
|
Ok, i replace HTTPEncode/HTTPDecode. Now it
run fine.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a51147$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a50213 (AT) newsgroups (DOT) borland.com...
When i have a request like
http://www.server.com/path/abc+def.jpg
That is not a properly encoded request. It should have been this instead:
http://www.server.com/path/abc%20def.jpg
Please show your actual code for formatting and sending the request.
With Indy 9 this run fine!
Indy 9 has the same line commented out in URLDecode().
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Nov 25, 2004 12:43 am Post subject: Re: Indy 10, Bug in TIdURI |
|
|
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote
| Quote: | Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.
|
Why are you encoding manually at all?
Gambit
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Thu Nov 25, 2004 1:06 am Post subject: Re: Indy 10, Bug in TIdURI |
|
|
I develop two large Indy/EWF Applications that create
many many HTML-Code
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a52b7b$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a526ba (AT) newsgroups (DOT) borland.com...
Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.
Why are you encoding manually at all?
Gambit
|
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Thu Nov 25, 2004 1:21 am Post subject: Re: Indy 10, Bug in TIdURI |
|
|
If i do this not, i have many problems with files
with special language chars in filename. You never
known, what the customer do.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a52b7b$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a526ba (AT) newsgroups (DOT) borland.com...
Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.
Why are you encoding manually at all?
Gambit
|
|
|
| Back to top |
|
 |
|