summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-20 09:00:21 +0400
committerAndrew Dolgov <[email protected]>2013-03-20 09:03:16 +0400
commit44cd77b642df47aef617d74f0571d4354d4be67d (patch)
tree3ea5d62704ee637205fc4cd8f740c0e8c82905a5 /include
parent897589a5c3eb10bdf09f91c5a566f0914b3bb169 (diff)
format_inline_player: add a link to original audio file
Diffstat (limited to 'include')
-rw-r--r--include/functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 1feedcbf0..99c621f5f 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2870,6 +2870,8 @@
$entry = "";
+ $url = htmlspecialchars($url);
+
if (strpos($ctype, "audio/") === 0) {
if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false ||
@@ -2896,7 +2898,8 @@
</object>";
}
- if ($entry) $entry .= "&nbsp;" . basename($url);
+ if ($entry) $entry .= "&nbsp; <a target=\"_blank\"
+ href=\"$url\">" . basename($url) . "</a>";
return $entry;