Add follow redirect in bigbluebutton plugin. (#3009)

* Add follow redirect in bigbluebutton plugin.
* Fix indentation in bbb_api.php
* Second code style fix.
* Put max redirections to bbb api calls.
pull/3064/head
Ghazi Triki 6 years ago committed by Yannick Warnier
parent d1862b29cc
commit dd6e862a3a
  1. 2
      plugin/bbb/lib/bbb_api.php

@ -64,6 +64,8 @@ class BigBlueButtonBN
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt( $ch, CURLOPT_MAXREDIRS, 5 )
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec( $ch );
curl_close( $ch );

Loading…
Cancel
Save