Help for this page

Select Code to Download


  1. or download this
        # Check if we have a <base> tag which should replace the user-supp
    +lied URL
        if( $_[0] =~ s!<\s*\bbase\b[^>]+\bhref=([^>]+)>!!i ) {
    ...
            $url = relative_url( $url, $href );
            #warn "base: $old_url / $href => $url";
        };