Rs: account disable bug and special chars fixed

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@5935 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
jiaz 2009-05-29 14:50:41 +00:00
parent d088f68fb8
commit 8c3b8da29e

View File

@ -1039,10 +1039,9 @@ public class Rapidshare extends PluginForHost {
}
// @Override
public AccountInfo fetchAccountInfo(Account account) throws Exception {
public AccountInfo fetchAccountInfo(Account account) throws Exception {
AccountInfo ai = new AccountInfo(this, account);
String api = "http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&login=" + account.getUser() + "&password=" + account.getPass() + "&type=prem";
String api = "http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&login=" + Encoding.urlEncode(account.getUser()) + "&password=" + Encoding.urlEncode(account.getPass()) + "&type=prem";
br.getPage(api);
String error = br.getRegex("ERROR:(.*)").getMatch(0);
if (error != null) {