Use url encode on all text parameter

This commit is contained in:
Laurent Clouet
2016-09-25 20:08:47 +02:00
parent fe626a3bee
commit 6b052155f9

View File

@@ -190,13 +190,13 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
"/server/config.php", "/server/config.php",
URLEncoder.encode(this.user_config.login(), "UTF-8"), URLEncoder.encode(this.user_config.login(), "UTF-8"),
URLEncoder.encode(this.user_config.password(), "UTF-8"), URLEncoder.encode(this.user_config.password(), "UTF-8"),
os.getCPU().family(), URLEncoder.encode(os.getCPU().family(), "UTF-8"),
os.getCPU().model(), URLEncoder.encode(os.getCPU().model(), "UTF-8"),
URLEncoder.encode(os.getCPU().name(), "UTF-8"), URLEncoder.encode(os.getCPU().name(), "UTF-8"),
((this.user_config.getNbCores() == -1) ? os.getCPU().cores() : this.user_config.getNbCores()), ((this.user_config.getNbCores() == -1) ? os.getCPU().cores() : this.user_config.getNbCores()),
os.name(), URLEncoder.encode(os.name(), "UTF-8"),
os.getMemory(), os.getMemory(),
os.getCPU().arch(), URLEncoder.encode(os.getCPU().arch(), "UTF-8"),
this.user_config.getJarVersion(), this.user_config.getJarVersion(),
URLEncoder.encode(hostname, "UTF-8"), URLEncoder.encode(hostname, "UTF-8"),
this.user_config.getExtras()); this.user_config.getExtras());