Skip to content

Commit

Permalink
[audioinfo.php] Exculde file tag from html escape
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Nov 26, 2024
1 parent 6d1b23e commit dbddd67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/command/audioinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function parseTrackInfo($resp) {
}

while ($line) {
list ($element, $value) = explode(': ', $line, 2);
list ($element, $origValue) = explode(': ', $line, 2);

$value = htmlspecialchars($value, ENT_NOQUOTES);
$value = htmlspecialchars($origValue, ENT_NOQUOTES);

switch ($element) {
// Not needed for display
Expand All @@ -98,7 +98,7 @@ function parseTrackInfo($resp) {
break;
// All others
case 'file':
$file = $value;
$file = $origValue;
$level = stripos(dirname($file), '.cue', -4) === false ? 1 : 2;
$cover_hash = md5(dirname($file, $level));
$array[0] = file_exists(THMCACHE_DIR . $cover_hash . '.jpg') ? array('Covers' => $cover_hash) : array('Covers' => '');
Expand Down

0 comments on commit dbddd67

Please sign in to comment.