Stop prepending urn:uuid: to guids that look like UUIDs
authorSimon McVittie <http://smcv.pseudorandom.co.uk/>
Sat, 12 Jul 2008 16:34:40 +0000 (17:34 +0100)
committerSimon McVittie <http://smcv.pseudorandom.co.uk/>
Sat, 12 Jul 2008 16:34:40 +0000 (17:34 +0100)
IkiWiki/Plugin/meta.pm

index 55c214f67830e889fd51e8890fc97091a11d3f8b..d00b6854f698126e6b6548fc0705deefc0f6f748 100644 (file)
@@ -85,13 +85,7 @@ sub preprocess (@) { #{{{
                # fallthrough
        }
        elsif ($key eq 'guid') {
-               my $abs = $value;
-
-               if ($abs =~ m/^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$/) {
-                       $abs = lc "urn:uuid:$abs";
-               }
-
-               $pagestate{$page}{meta}{guid}=HTML::Entities::encode_numeric($abs);
+               $pagestate{$page}{meta}{guid}=HTML::Entities::encode_numeric($value);
                # fallthrough
        }
        elsif ($key eq 'license') {