urlencode

This commit is contained in:
kremsy
2014-02-09 14:01:04 +01:00
committed by Steffen Schröder
parent d0bd5b40c3
commit 7d46cfbcab
3 changed files with 8 additions and 7 deletions

View File

@ -39,12 +39,12 @@ class ErrorHandler {
$error['ManiaControlVersion'] = ManiaControl::VERSION;
$error['OperatingSystem'] = php_uname();
$error['PHPVersion'] = phpversion();
$error['ServerLogin'] = null;
$error['ServerLogin'] = null;
$json = json_encode($error);
$info = base64_encode($json);
$url = UpdateManager::URL_WEBSERVICE . "errorreport?error=" . $info;
$url = UpdateManager::URL_WEBSERVICE . "errorreport?error=" . urlencode($info);
$success = FileUtil::loadFile($url);
if (!json_decode($success)) {
@ -80,12 +80,12 @@ class ErrorHandler {
$error['ManiaControlVersion'] = ManiaControl::VERSION;
$error['OperatingSystem'] = php_uname();
$error['PHPVersion'] = phpversion();
$error['ServerLogin'] = $this->maniaControl->server->login;
$error['ServerLogin'] = $this->maniaControl->server->login;
$json = json_encode($error);
$info = base64_encode($json);
$url = UpdateManager::URL_WEBSERVICE . "errorreport?error=" . $info;
$url = UpdateManager::URL_WEBSERVICE . "errorreport?error=" . urlencode($info);
$success = FileUtil::loadFile($url);
if (!json_decode($success)) {