Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.roller.weblogger.util;

import io.github.pixee.security.HostValidator;
import static io.github.pixee.security.Newlines.stripAll;
import io.github.pixee.security.Urls;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
Expand Down Expand Up @@ -74,11 +75,11 @@ public static MediacastResource lookupResource(String url)
}

resource = new MediacastResource(url, contentType, length);
LOG.debug("Valid mediacast resource = " + resource.toString());
LOG.debug("Valid mediacast resource = " + stripAll(resource.toString()));

}
} catch (MalformedURLException mfue) {
LOG.debug("Malformed MediaCast url: " + url);
LOG.debug("Malformed MediaCast url: " + stripAll(url));
throw new MediacastException(BAD_URL, "weblogEdit.mediaCastUrlMalformed", mfue);
} catch (Exception e) {
LOG.error("ERROR while checking MediaCast URL: " + url + ": " + e.getMessage());
Expand Down