Fixed probable clan notice bypass exploit.
This commit is contained in:
@ -1218,7 +1218,7 @@ public class Clan implements IIdentifiable, INamable
|
||||
|
||||
public void setNoticeEnabled(boolean enabled)
|
||||
{
|
||||
storeNotice(_notice, enabled);
|
||||
storeNotice(getNotice(), enabled);
|
||||
}
|
||||
|
||||
public void setNotice(String notice)
|
||||
@ -1237,6 +1237,14 @@ public class Clan implements IIdentifiable, INamable
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
// Bypass exploit check.
|
||||
final String text = _notice.toLowerCase();
|
||||
if (text.contains("action") && text.contains("bypass"))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return _notice;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user