Changeset 684422
- Timestamp:
- 03/19/2013 09:23:03 PM (13 years ago)
- Location:
- absolute-to-relative-urls
- Files:
-
- 3 added
- 2 edited
-
tags/0.3.2 (added)
-
tags/0.3.2/absolute-to-relative-urls.php (added)
-
tags/0.3.2/readme.txt (added)
-
trunk/absolute-to-relative-urls.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
absolute-to-relative-urls/trunk/absolute-to-relative-urls.php
r601834 r684422 4 4 Plugin URI: http://www.svachon.com/blog/absolute-to-relative-urls/ 5 5 Description: 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. 16 Version: 0.3.2 7 7 Author: Steven Vachon 8 8 Author URI: http://www.svachon.com/ … … 313 313 protected function parse_url($url, $init=false) 314 314 { 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) 316 321 { 317 322 // Cannot parse scheme-relative URLs with parse_url … … 474 479 if ($url === false) 475 480 { 476 // Un knownformat481 // Unusable format 477 482 return $original_url; 478 483 } … … 622 627 return $absolute_to_relative_url_instance->relate_url($url, $ignore_www, $output_type); 623 628 } 629 630 631 624 632 ?> -
absolute-to-relative-urls/trunk/readme.txt
r601834 r684422 62 62 == Changelog == 63 63 64 = 0.3.2 = 65 * Data URIs are no longer invalidated 66 64 67 = 0.3.1 = 65 68 * 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.