mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-16 19:04:05 +02:00
String comparisons: don't use "reference equality"
See https://stackoverflow.com/q/513832 for more details
This commit is contained in:
@@ -82,7 +82,7 @@ public class Http {
|
||||
String domain = String.join(".", parts);
|
||||
// Try to get cookies for this host from config
|
||||
cookieStr = Utils.getConfigString("cookies." + domain, "");
|
||||
if (cookieStr != "") {
|
||||
if (cookieStr.equals("")) {
|
||||
cookieDomain = domain;
|
||||
// we found something, start parsing
|
||||
break;
|
||||
@@ -90,7 +90,7 @@ public class Http {
|
||||
parts = (String[]) ArrayUtils.remove(parts, 0);
|
||||
}
|
||||
|
||||
if (cookieStr != "") {
|
||||
if (!cookieStr.equals("")) {
|
||||
cookiesParsed = RipUtils.getCookiesFromString(cookieStr.trim());
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
|
Reference in New Issue
Block a user