]> git.wh0rd.org Git - tt-rss.git/commitdiff
format_inline_player: add a link to original audio file
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 05:00:21 +0000 (09:00 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 05:03:16 +0000 (09:03 +0400)
include/functions.php

index 1feedcbf0172f8fa76ca5833644629504a311959..99c621f5f692103c1e29abfe9ed8eac171307677 100644 (file)
 
                $entry = "";
 
+               $url = htmlspecialchars($url);
+
                if (strpos($ctype, "audio/") === 0) {
 
                        if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false ||
                                        </object>";
                        }
 
-                       if ($entry) $entry .= "&nbsp;" . basename($url);
+                       if ($entry) $entry .= "&nbsp; <a target=\"_blank\"
+                               href=\"$url\">" . basename($url) . "</a>";
 
                        return $entry;