Thanks, worked like a charm!
Whether it’s just a bug or a whole upload revamp, shouldn’t there be a ticket to track progress?
To add to this thread, I’m seeing the same behavior on a live install (non localhost environment) of P2 1.2.3. We’re using HTTPS entirely, if that makes any difference.
I know this is a hack, but commenting out line 66 of p2/inc/p2.php fixes the problem for us.
function url_filter( $url, $path = '' ) {
$parsed = parse_url( $url );
$host = ( isset( $parsed['host'] ) ) ? $parsed['host'] : '';
// $url = preg_replace( '|https?://' . preg_quote( $host ) . '|', home_url(), $url );
return esc_url( $url );
}