Minor Link bypass improvements.
This commit is contained in:
@@ -31,7 +31,7 @@ public class Link implements IBypassHandler
|
||||
"Link"
|
||||
};
|
||||
|
||||
private static final String[] VALID_BYPASSES =
|
||||
private static final String[] VALID_LINKS =
|
||||
{
|
||||
"common/attribute_info.htm",
|
||||
"common/augmentation_01.htm",
|
||||
@@ -109,7 +109,7 @@ public class Link implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
String content = CommonUtil.contains(VALID_BYPASSES, htmlPath) ? HtmCache.getInstance().getHtm(player, "data/html/" + htmlPath) : null;
|
||||
String content = CommonUtil.contains(VALID_LINKS, htmlPath) ? HtmCache.getInstance().getHtm(player, "data/html/" + htmlPath) : null;
|
||||
// Precaution.
|
||||
if (htmlPath.startsWith("teleporter/") && !(player.getTarget() instanceof TeleporterInstance))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user