Skip to content

Commit 5d649c5

Browse files
committed
RRoEmbed_Consumer::_buildOEmbedRequestUrl() no longer use http_build_url() which is part of the "http" extension which may not be always loaded.
1 parent a59c99c commit 5d649c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: Classes/Consumer.class.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@ protected function _buildOEmbedRequestUrl( $resource, $endPoint, $format = self:
177177
'format' => $format
178178
);
179179

180-
$uriParams = http_build_query( $parameters, '', '&' );
180+
$urlParams = http_build_query( $parameters, '', '&' );
181+
$url = $endPoint
182+
. ( ( strpos( $endPoint, '=' ) !== FALSE ) ? '&' : '?' )
183+
. $urlParams;
181184

182-
return http_build_url( $endPoint, array( 'query' => $uriParams ) );
185+
return $url;
183186
}
184187

185188
/**

0 commit comments

Comments
 (0)