aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.homeinstall/README.md3
-rw-r--r--Zotlabs/Daemon/Onepoll.php2
-rw-r--r--include/network.php3
3 files changed, 6 insertions, 2 deletions
diff --git a/.homeinstall/README.md b/.homeinstall/README.md
index 1ed2e07d2..43c5d14b3 100644
--- a/.homeinstall/README.md
+++ b/.homeinstall/README.md
@@ -17,6 +17,7 @@ Software
+ Fresh installation of Debian 10 (Stretch)
+ Router with open ports 80 and 443 for your web server
++ Some form of email server or email gateway such that PHP mail() works.
## How to run the script
@@ -45,7 +46,7 @@ In Admin settings of hubzilla or via terminal
## Optional - Switch verification of email on/off
-Do this just befor you register the user.
+Do this just befor you register the user and you have no working PHP mail().
In Admin settings of hubzilla or via terminal
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php
index fdcb907d1..93a5412b0 100644
--- a/Zotlabs/Daemon/Onepoll.php
+++ b/Zotlabs/Daemon/Onepoll.php
@@ -2,6 +2,8 @@
namespace Zotlabs\Daemon;
+use Zotlabs\Lib\Libzot;
+
require_once('include/zot.php');
require_once('include/socgraph.php');
diff --git a/include/network.php b/include/network.php
index c2edb4f8a..29c5bbcb9 100644
--- a/include/network.php
+++ b/include/network.php
@@ -61,7 +61,8 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
@curl_setopt($ch, CURLOPT_CAINFO, get_capath());
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
- @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)");
+ @curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; zot)');
+ @curl_setopt($ch, CURLOPT_ENCODING, '');
$ciphers = @get_config('system','curl_ssl_ciphers');
if($ciphers)