Commit bb4ccad1 authored by Leon Roy's avatar Leon Roy Committed by leonroy

OPEN - issue OF-680: Packet Filter Plugin does not allow creation of wildcard rules

http://issues.igniterealtime.org/browse/OF-680

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13674 b35dd754-fafc-0310-a699-88a17e54d16e
parent 05a963ca
......@@ -6,7 +6,7 @@
<description>Monitors conversations and statistics of the server.</description>
<author>Jive Software</author>
<version>1.3.3</version>
<date>06/05/2013</date>
<date>06/06/2013</date>
<minServerVersion>3.6.0</minServerVersion>
<databaseKey>monitoring</databaseKey>
<databaseVersion>1</databaseVersion>
......
......@@ -44,11 +44,18 @@
Packet Filter Plugin Changelog
</h1>
<p><b>3.0.2</b> -- June 6, 2013</p>
<ul>
<li>OF-680 - Packet Filter Plugin does not allow creation of wildcard rules.</li>
</ul>
<p><b>3.0.1</b> -- May 7, 2011</p>
<li>Fix group performance issue.</li>
<li>Improve sql code.</li>
<li>Remove some cruft.</li>
<ul>
<li>Fix group performance issue.</li>
<li>Improve sql code.</li>
<li>Remove some cruft.</li>
</ul>
<p><b>3.0</b> -- Dec 2, 2009</p>
......
......@@ -7,8 +7,8 @@
<name>Packet Filter</name>
<description>Rules to enforce ethical communication</description>
<author>Nate Putnam</author>
<version>3.0.1</version>
<date>5/7/2011</date>
<version>3.0.2</version>
<date>6/6/2013</date>
<minServerVersion>3.7.0</minServerVersion>
<databaseKey>packetfilter</databaseKey>
<databaseVersion>2</databaseVersion>
......
......@@ -168,7 +168,7 @@
rule.setDestType(Rule.SourceDestType.Any);
} else if (destination.equals(Rule.SourceDestType.Other.toString())) {
destJID = ParamUtils.getParameter(request, "destOtherJID");
if (destJID == null || !(sourceJID.length() > 0)) {
if (destJID == null || !(destJID.length() > 0)) {
destJID = "";
errors.put("destOther", "");
}
......@@ -196,7 +196,7 @@
rule.setOrder(new Integer(order));
if (errors.isEmpty()) {
if (rule.getSourceType() == Rule.SourceDestType.User ||
rule.getDestType() == Rule.SourceDestType.Other) {
rule.getSourceType() == Rule.SourceDestType.Other) {
rule.setSource(rule.getSource().toLowerCase());
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment