Skip to content

Commit

Permalink
[ComboiosDePortugalBridge] Temporarily ignore certificate checks (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
somini authored Jan 4, 2022
1 parent d0ef8aa commit 8530aa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bridges/ComboiosDePortugalBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class ComboiosDePortugalBridge extends BridgeAbstract {
const MAINTAINER = 'somini';

public function collectData() {
$html = getSimpleHTMLDOM($this->getURI() . '/consultar-horarios/avisos');
# Do not verify SSL certificate (the server doesn't send the intermediate)
# https://github.com/RSS-Bridge/rss-bridge/issues/2397
$html = getSimpleHTMLDOM($this->getURI() . '/consultar-horarios/avisos', array(), array(
CURLOPT_SSL_VERIFYPEER => 0,
));

foreach($html->find('.warnings-table a') as $element) {
$item = array();
Expand Down

0 comments on commit 8530aa5

Please sign in to comment.