diff --git a/OSGi/com.dotcms.webinterceptor2/src/main/java/com/dotmarketing/osgi/webinterceptors/UnauthorizedConfigurableRedirectCommand.java b/OSGi/com.dotcms.webinterceptor2/src/main/java/com/dotmarketing/osgi/webinterceptors/UnauthorizedConfigurableRedirectCommand.java deleted file mode 100644 index 3233950f..00000000 --- a/OSGi/com.dotcms.webinterceptor2/src/main/java/com/dotmarketing/osgi/webinterceptors/UnauthorizedConfigurableRedirectCommand.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.dotmarketing.osgi.webinterceptors; - -import com.dotmarketing.beans.Host; -import com.dotmarketing.portlets.languagesmanager.model.Language; -import com.dotmarketing.util.Config; -import com.dotmarketing.util.UtilMethods; -import com.liferay.portal.model.User; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -public class ConfigurableRedirectCommand implements FilteredCommand { - - - @Override - public boolean tryRedirect(final HttpServletRequest request, - final HttpServletResponse response, - final Language language, - final Host host, - final User user, - final String uri) { - - final String[] filteredUrls = Config.getStringArrayProperty("dotcms.filtered.urls"); - - if (UtilMethods.isSet(filteredUrls)) { - for (final String filteredUrl : filteredUrls) { - - if (uri.contains(filteredUrl)) { - - return true; - } - } - } - - return false; - } -}