Skip to content

Commit

Permalink
Merge pull request #426 from equalizedigital/425-custom-user-agent-no…
Browse files Browse the repository at this point in the history
…t-being-passed-on-edac_get_content-requests

Fixes #425
  • Loading branch information
SteveJonesDev authored Dec 14, 2023
2 parents c5cbda9 + 895e499 commit f94121d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function edac_get_content( $post ) {
// setup the context for the request.
// note - if follow_location => false, permalinks that redirect (both offsite and on).
// will not be followed, so $content['html] will be false.
$merged_context_opts = array_merge( $default_context_opts, $context_opts );
$merged_context_opts = array_merge_recursive( $default_context_opts, $context_opts );
$context = stream_context_create( $merged_context_opts );

$dom = file_get_html( $url, false, $context );
Expand Down

0 comments on commit f94121d

Please sign in to comment.