mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-26 08:09:30 -04:00
replace exception to assersion (#2196)
This commit is contained in:
1 parent
5493a32e3b
commit
38d6ad53cd
2 files changed
+39
-73
No files matched your search
@@ -100,7 +100,7 @@ class HttpRequestHelper {
|
||||
$parsedUrl = parse_url($url);
|
||||
$baseUrl = $parsedUrl['scheme'] . '://' . $parsedUrl['host'];
|
||||
$baseUrl .= isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : '';
|
||||
$testUrl = $baseUrl . "/graph/v1.0/user/$user";
|
||||
$testUrl = $baseUrl . "/graph/v1.0/me";
|
||||
if (OcHelper::isTestingOnReva()) {
|
||||
$url = $baseUrl . "/ocs/v2.php/cloud/users/$user";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user