Plugin Directory

Changeset 684422


Ignore:
Timestamp:
03/19/2013 09:23:03 PM (13 years ago)
Author:
prometh
Message:

v0.3.2

Location:
absolute-to-relative-urls
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • absolute-to-relative-urls/trunk/absolute-to-relative-urls.php

    r601834 r684422  
    44Plugin URI: http://www.svachon.com/blog/absolute-to-relative-urls/
    55Description: A <strong>function</strong> for use in shortening URL links. Just use <code><strong>absolute_to_relative_url</strong>( string <em>$url</em> [, bool <em>$ignore_www</em> = <em>true</em> [, bool <em>$choose_shortest</em> = <em>true</em>]] )</code>.
    6 Version: 0.3.1
     6Version: 0.3.2
    77Author: Steven Vachon
    88Author URI: http://www.svachon.com/
     
    313313    protected function parse_url($url, $init=false)
    314314    {
    315         if (strpos($url, '//') === 0)
     315        if (strpos($url, 'data:') === 0)
     316        {
     317            // Nothing can be done with a data URI
     318            return false;
     319        }
     320        else if (strpos($url, '//') === 0)
    316321        {
    317322            // Cannot parse scheme-relative URLs with parse_url
     
    474479            if ($url === false)
    475480            {
    476                 // Unknown format
     481                // Unusable format
    477482                return $original_url;
    478483            }
     
    622627    return $absolute_to_relative_url_instance->relate_url($url, $ignore_www, $output_type);
    623628}
     629
     630
     631
    624632?>
  • absolute-to-relative-urls/trunk/readme.txt

    r601834 r684422  
    6262== Changelog ==
    6363
     64= 0.3.2 =
     65* Data URIs are no longer invalidated
     66
    6467= 0.3.1 =
    6568* Domains with and without "www." are no longer considered to be identical by default, but can still be overridden
Note: See TracChangeset for help on using the changeset viewer.