|
From: <gem...@li...> - 2011-11-01 14:03:34
|
Revision: 160
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=160&view=rev
Author: michieltcs
Date: 2011-11-01 14:03:23 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
Accept unknown CA's when verifying https urls
Modified Paths:
--------------
trunk/library/classes/MUtil/Validate/Url.php
Modified: trunk/library/classes/MUtil/Validate/Url.php
===================================================================
--- trunk/library/classes/MUtil/Validate/Url.php 2011-11-01 13:52:15 UTC (rev 159)
+++ trunk/library/classes/MUtil/Validate/Url.php 2011-11-01 14:03:23 UTC (rev 160)
@@ -114,6 +114,11 @@
// curl_setopt($ch, CURLOPT_FILETIME, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
+
+ /**
+ * @todo Unknown CA's should probably be imported...
+ */
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$valid = curl_exec($ch);
if (! $valid) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|