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:
parent
7a2a5fb709
commit
4ba620936b
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user