diff --git a/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/BootstrapSass.java b/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/BootstrapSass.java index 73be9d673..04175db14 100644 --- a/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/BootstrapSass.java +++ b/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/BootstrapSass.java @@ -4,7 +4,6 @@ import org.apache.wicket.markup.html.IPackageResourceGuard; import org.apache.wicket.markup.html.SecurePackageResourceGuard; import org.apache.wicket.request.resource.IResourceReferenceFactory; -import org.apache.wicket.request.resource.IResourceUrlSanitizer; import org.apache.wicket.request.resource.ResourceReferenceRegistry; /** @@ -40,10 +39,6 @@ public static void install(final Application app, final SassCompilerOptionsFacto ResourceReferenceRegistry resourceReferenceRegistry = app.getResourceReferenceRegistry(); IResourceReferenceFactory delegate = resourceReferenceRegistry.getResourceReferenceFactory(); resourceReferenceRegistry.setResourceReferenceFactory(new SassResourceReferenceFactory(delegate)); - - IResourceUrlSanitizer sanitizer = app.getResourceSettings().getUrlSanitizer(); - SassResourceUrlSanitizer sassSanitizer = new SassResourceUrlSanitizer(sanitizer); - app.getResourceSettings().setUrlSanitizer(sassSanitizer); } /** diff --git a/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/SassResourceUrlSanitizer.java b/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/SassResourceUrlSanitizer.java deleted file mode 100644 index d7d3de6e6..000000000 --- a/bootstrap-sass/src/main/java/de/agilecoders/wicket/sass/SassResourceUrlSanitizer.java +++ /dev/null @@ -1,30 +0,0 @@ -package de.agilecoders.wicket.sass; - -import org.apache.wicket.request.resource.IResourceUrlSanitizer; -import org.apache.wicket.request.resource.ResourceReference; - -public class SassResourceUrlSanitizer implements IResourceUrlSanitizer -{ - - private IResourceUrlSanitizer delegate; - - public SassResourceUrlSanitizer(IResourceUrlSanitizer delegate) - { - this.delegate = delegate; - } - - @Override - public ResourceReference.UrlAttributes sanitize(ResourceReference.UrlAttributes urlAttributes, - Class scope, String name) - { - if (ContextRelativeSassResourceReference.CONTEXT_RELATIVE_SASS_REFERENCE_VARIATION.equals( - urlAttributes.getVariation())) - { - return urlAttributes; - } - else - { - return delegate.sanitize(urlAttributes, scope, name); - } - } -}