diff options
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r-- | web/template/pkg_details.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index ffe735c7..77be0670 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -146,10 +146,12 @@ $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : gmdate("r", intval( <?php while (list($k, $src) = each($sources)) { $parsed_url = parse_url($src); + if ($parsed_url['scheme']) { # It is an external source - echo "<a href='".$src."'>".$src."</a><br />\n"; + $src = explode('::', $src); + echo "<a href=\"" . (isset($src[1]) ? $src[1] : $src[0]) . "\">$src[0]</a><br />\n"; } else { |