diff options
author | Dmitry Stogov <dmitry@php.net> | 2009-08-17 18:23:48 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2009-08-17 18:23:48 +0000 |
commit | b06436f171ffb6eae91af5a4269d5fd56780693c (patch) | |
tree | 0389e47453c98625de7f76ad5bdfdafaf104216d /ext/soap/php_schema.c | |
parent | 5ae549c8fdde18b3891ff733a93dc5ff80c2a471 (diff) | |
download | php-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.c | 3 |
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); } |