Commit d4c65b40 authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

we still support JDK1.5 I think, tweak patch for OF-342


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13275 b35dd754-fafc-0310-a699-88a17e54d16e
parent 420009d9
......@@ -300,7 +300,7 @@ public final class HttpBindManager {
}
public void setCORSAllowOrigin(String origins) {
if (origins == null || origins.trim().isEmpty())
if (origins == null || origins.trim().length() == 0)
origins = HTTP_BIND_CORS_ALLOW_ORIGIN_DEFAULT;
else {
origins = origins.replaceAll("\\s+", "");
......
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