mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update cmd_overrides + stripArtifacts regex
This commit is contained in:
@@ -122,7 +122,7 @@ function saveProviderConfig($status, $binPath, $country, $id = null)
|
||||
*/
|
||||
function stripArtifacts($output, $pattern = null)
|
||||
{
|
||||
$result = preg_replace('/[-\/\n\t\\\\'.$pattern.'|]/', '', $output);
|
||||
$result = preg_replace('/[-\/\n\t\\\\'.$pattern.'|\[0m\[1;33;49m]/', '', $output);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user