@@ -755,20 +755,20 @@ static php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper,
755755 /* decode the strings first */
756756 php_url_decode (ZSTR_VAL (resource -> user ), ZSTR_LEN (resource -> user ));
757757
758- smart_str_appendl (& scratch , ZSTR_VAL ( resource -> user ), ZSTR_LEN ( resource -> user ) );
758+ smart_str_append (& scratch , resource -> user );
759759 smart_str_appendc (& scratch , ':' );
760760
761761 /* Note: password is optional! */
762762 if (resource -> password ) {
763763 php_url_decode (ZSTR_VAL (resource -> password ), ZSTR_LEN (resource -> password ));
764- smart_str_appendl (& scratch , ZSTR_VAL ( resource -> password ), ZSTR_LEN ( resource -> password ) );
764+ smart_str_append (& scratch , resource -> password );
765765 }
766766
767767 zend_string * scratch_str = smart_str_extract (& scratch );
768768 stmp = php_base64_encode ((unsigned char * )ZSTR_VAL (scratch_str ), ZSTR_LEN (scratch_str ));
769769
770770 smart_str_appends (& req_buf , "Authorization: Basic " );
771- smart_str_appendl (& req_buf , ZSTR_VAL ( stmp ), ZSTR_LEN ( stmp ) );
771+ smart_str_append (& req_buf , stmp );
772772 smart_str_appends (& req_buf , "\r\n" );
773773
774774 php_stream_notify_info (context , PHP_STREAM_NOTIFY_AUTH_REQUIRED , NULL , 0 );
0 commit comments