Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbinsky <timo@binsky.org>2021-03-23 02:25:45 +0300
committerbinsky <timo@binsky.org>2021-03-23 02:25:45 +0300
commiteddef5af57891a5081add852bfa0f71788c7ed54 (patch)
treef8108ca4e94de1edcbade924560d91e56f67c2f4
parent9d47d0f28d2f8e4d52531a68ecc3c2bced9a075d (diff)
improve Admin.php
-rw-r--r--lib/Settings/Admin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php
index 8acfe0f7..2196dbb6 100644
--- a/lib/Settings/Admin.php
+++ b/lib/Settings/Admin.php
@@ -60,7 +60,7 @@ class Admin implements ISettings {
// get latest master version
$version = false;
- $url = 'https://raw.githubusercontent.com/nextcloud/passman/master/appinfo/info.xml';
+ $url = 'https://raw.githubusercontent.com/nextcloud/passman/dist/appinfo/info.xml';
try {
$httpClient = new Client();
$response = $httpClient->request('get', $url);
@@ -70,12 +70,12 @@ class Admin implements ISettings {
}
if ($xml) {
- $data = @simplexml_load_string($xml);
+ $data = simplexml_load_string($xml);
// libxml_disable_entity_loader is deprecated with php8, the vulnerability is disabled by default by libxml with php8
if (\PHP_VERSION_ID < 80000) {
$loadEntities = libxml_disable_entity_loader(true);
- $data = @simplexml_load_string($xml);
+ $data = simplexml_load_string($xml);
libxml_disable_entity_loader($loadEntities);
}