Closed (fixed)
Project:
SOAP Client
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Aug 2009 at 09:39 UTC
Updated:
1 Oct 2009 at 19:40 UTC
Jump to comment: Most recent file
If you visit the settings page and click 'save', empty proxy settings are stored in the database.
This causes the PHP soap library to assume you want to connect to a proxy host named "".
The attached patch checks uses NULL when value is saved but empty, so it behaves the same whether variables are absent from the database or empty empty strings.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | soapclient_557748_2.diff | 1.87 KB | ilo |
| soapclient.module.diff | 933 bytes | Peter Bex |
Comments
Comment #1
ilo commentedHi Peter, thanks for the patch. I've improved a little bit to be sure that white space strings are also not allowed, and permit the string "0" (could be a username or password). PHP empty() function does not care about these two issues.
Comment #2
Peter Bex commentedThanks, this patch looks good.
*Wanders off, muttering something about PHP's typesystem*
Comment #3
ilo commentedThanks, need to be tested before commiting. If as you said this could be a php error it may fail in some situations.
Comment #4
ilo commentedForget about this. I just have too many windows open and I did a mistake :)
Commited to 6.x-1.x-dev.