kopia lustrzana https://github.com/nextcloud/social
Merge pull request #741 from nextcloud/bugfix/727/fix-url-generation-on-local-host
fix url generation on local hostpull/758/head
commit
b459819e4c
|
@ -342,6 +342,10 @@ class ConfigService {
|
|||
* @param string $cloudAddress
|
||||
*/
|
||||
public function setCloudUrl(string $cloudAddress) {
|
||||
if (parse_url($cloudAddress, PHP_URL_SCHEME) === null) {
|
||||
$cloudAddress = 'http://' . $cloudAddress;
|
||||
}
|
||||
|
||||
$this->setAppValue(self::CLOUD_URL, $cloudAddress);
|
||||
}
|
||||
|
||||
|
@ -397,6 +401,10 @@ class ConfigService {
|
|||
);
|
||||
}
|
||||
|
||||
if (parse_url($url, PHP_URL_SCHEME) === null) {
|
||||
$url = 'http://' . $url;
|
||||
}
|
||||
|
||||
$this->setAppValue(self::SOCIAL_URL, $url);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue