summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-08-17 18:23:48 +0000
committerDmitry Stogov <dmitry@php.net>2009-08-17 18:23:48 +0000
commitb06436f171ffb6eae91af5a4269d5fd56780693c (patch)
tree0389e47453c98625de7f76ad5bdfdafaf104216d /ext/soap/php_schema.c
parent5ae549c8fdde18b3891ff733a93dc5ff80c2a471 (diff)
downloadphp-git-b06436f171ffb6eae91af5a4269d5fd56780693c.tar.gz
Fixed bug #49144 (import of schema from different host transmits original authentication details)
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index 975efce058..1d4631cf53 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -102,7 +102,10 @@ static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlA
xmlNodePtr schema;
xmlAttrPtr new_tns;
+ sdl_set_uri_credentials(ctx, (char*)location TSRMLS_CC);
doc = soap_xmlParseFile((char*)location TSRMLS_CC);
+ sdl_restore_uri_credentials(ctx TSRMLS_CC);
+
if (doc == NULL) {
soap_error1(E_ERROR, "Parsing Schema: can't import schema from '%s'", location);
}