X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/f2a5805cac945d9dbadc37ff1c7946e938a0d9f1..cec131d5363dee47eed339881c1043c404094fb7:/src/shpub/Config/Endpoints.php diff --git a/src/shpub/Config/Endpoints.php b/src/shpub/Config/Endpoints.php index 2e58e7a..bc0510e 100644 --- a/src/shpub/Config/Endpoints.php +++ b/src/shpub/Config/Endpoints.php @@ -44,7 +44,7 @@ class Config_Endpoints $baseUrl = new \Net_URL2($server); $doc = new \DOMDocument(); - $doc->loadHTMLFile($server); + @$doc->loadHTMLFile($server); $sx = simplexml_import_dom($doc); if ($sx === false) { Log::err('Error loading URL: ' . $server); @@ -112,10 +112,11 @@ class Config_Endpoints file_put_contents( $file, - 'micropub=' . $this->micropub . "\n" - . 'media=' . $this->media . "\n" - . 'token=' . $this->token . "\n" - . 'authorization=' . $this->authorization . "\n" + 'micropub=' . Config::quoteIniValue($this->micropub) . "\n" + . 'media=' . Config::quoteIniValue($this->media) . "\n" + . 'token=' . Config::quoteIniValue($this->token) . "\n" + . 'authorization=' + . Config::quoteIniValue($this->authorization) . "\n" ); }