4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-18 23:17:05 +00:00

#608 -- Make playlists "safe" by default in Liquidsoap

This commit is contained in:
Buster "Silver Eagle" Neece 2018-06-15 08:01:56 -05:00
parent 7a2a5fb709
commit 4ba620936b

View File

@ -158,7 +158,7 @@ class Liquidsoap extends BackendAbstract
'"'.$playlist_file_path.'"',
];
$ls_config[] = $playlist_var_name . ' = playlist('.implode(',', $playlist_params).')';
$ls_config[] = $playlist_var_name . ' = mksafe(playlist('.implode(',', $playlist_params).'))';
} else {
$ls_config[] = $playlist_var_name . ' = mksafe(input.http("'.$playlist->getRemoteUrl().'"))';
}
@ -729,4 +729,4 @@ class Liquidsoap extends BackendAbstract
$this->em->persist($this->station);
$this->em->flush();
}
}
}