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