Fixed probable clan notice bypass exploit.
This commit is contained in:
@@ -897,7 +897,7 @@ public class Clan
|
||||
|
||||
public void setNoticeEnabledAndStore(boolean enabled)
|
||||
{
|
||||
storeNotice(_notice, enabled);
|
||||
storeNotice(getNotice(), enabled);
|
||||
}
|
||||
|
||||
public void setNoticeAndStore(String notice)
|
||||
@@ -917,7 +917,19 @@ public class Clan
|
||||
|
||||
public String getNotice()
|
||||
{
|
||||
return (_notice == null) ? "" : _notice;
|
||||
if (_notice == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
// Bypass exploit check.
|
||||
final String text = _notice.toLowerCase();
|
||||
if (text.contains("action") && text.contains("bypass"))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return _notice;
|
||||
}
|
||||
|
||||
public void setNotice(String notice)
|
||||
|
Reference in New Issue
Block a user