r109273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109272‎ | r109273 | r109274 >
Date:00:59, 18 January 2012
Author:aaron
Status:ok
Tags:
Comment:
Disable SSL host/peer checks to avoid issues with local SSl certificate problems (like being out of date)
Modified paths:
  • /trunk/extensions/CongressLookup/maintenance/checkContacts.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CongressLookup/maintenance/checkContacts.php
@@ -44,7 +44,12 @@
4545 }
4646
4747 protected function checkContactLink( $name, $url, &$countOk ) {
48 - $req = MWHttpRequest::factory( $url, array( 'method' => 'GET', 'timeout' => 6 ) );
 48+ $req = MWHttpRequest::factory( $url, array(
 49+ 'method' => 'GET',
 50+ 'timeout' => 8,
 51+ 'sslVerifyHost' => false, // just check if it can be reached
 52+ 'sslVerifyCert' => false, // just check if it can be reached
 53+ ) );
4954 if ( $req->execute()->isOK() ) {
5055 ++$countOk;
5156 } else {

Status & tagging log