ASF Bugzilla – Attachment 19643 Details for
Bug 40589
Escaped ampersand characters are not unescaped when URL's are visited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for using & instead of & in URL
patch_amp_in_url.patch (text/plain), 1.04 KB, created by
Alf Hogemark
on 2007-02-27 02:27:17 UTC
(
hide
)
Description:
Patch for using & instead of & in URL
Filename:
MIME Type:
Creator:
Alf Hogemark
Created:
2007-02-27 02:27:17 UTC
Size:
1.04 KB
patch
obsolete
>Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (revision 512172) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (working copy) >@@ -765,7 +765,9 @@ > try { > URL url = (URL) binURL; > String urlstr = url.toString(); >+ // Encode any spaces, and change any & to & > String urlStrEnc=encodeSpaces(urlstr); >+ urlStrEnc = JOrphanUtils.substitute(urlStrEnc, "&", "&"); // $NON-NLS-1$//$NON-NLS-2$ > if (!urlstr.equals(urlStrEnc)){// There were some spaces in the URL > try { > url = new URL(urlStrEnc);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40589
: 19643