User: syscrusher Branch: HEAD Date: Fri, 24 Mar 2006 05:15:29 +0000 Modified files: /modules/links CHANGELOG.txt links.inc links.install links.module links_related.module links_weblink.module Log message: API change: New function links_parse_url() added. This function takes just about anything that works as a URL, parses it out, and returns the parsed components as well as a normalized version. The normalized version is synthesized by concatenating the appropriate components depending on the URL type, rather than just by using regular expressions on the entire URL. This yields a more thorough validation and normalization process. API change: The function links_normalize_url() now calls the new links_parse_url() function to do the heavy lifting. NOTE: Because of the above, it is necessary to recalc all of the MD5s in the {links} table. This can easily be done by using "update.php" (from core Drupal) to apply UPDATE 2 to the Links package. Most of your URLs will not change, but a few may be better normalized. In my testing, a database with 500 real URLs had only two changes, both of which were manually inspected and found to be legitimate normalizations. Changed links.install to fix length of {links_node}.module to correct issue #55372. This had already been fixed in links.mysql, but the change didn't propagate into the new install file. Removed trailing PHP delimiters from files per coding standards (http://drupal.org/node/545), thereby fixing issues #55577 and #45940. Removed icky DOS carriage returns from lines in links.inc, per issue #45940. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/links/CHANGELOG.tx... http://cvs.drupal.org/diff.php?path=contributions/modules/links/links.inc&ol... http://cvs.drupal.org/diff.php?path=contributions/modules/links/links.instal... http://cvs.drupal.org/diff.php?path=contributions/modules/links/links.module... http://cvs.drupal.org/diff.php?path=contributions/modules/links/links_relate... http://cvs.drupal.org/diff.php?path=contributions/modules/links/links_weblin...