mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Replace the <escape> character with the \e escape sequence
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -24,8 +24,8 @@ function echoEvent($datatext)
|
||||
// Detect ${OVER} and replace it with something we can safely transmit
|
||||
// This allows every line (including progress and error messages) to be shown on the page
|
||||
|
||||
// Replace "\r[K" (generated by gravity.sh) with "<------"
|
||||
$datatext = str_replace("\r[K", '<------', $datatext);
|
||||
// Replace "\r\e[K" ("CR+ESC+[" generated by gravity.sh) with "<------"
|
||||
$datatext = str_replace("\r\e[K", '<------', $datatext);
|
||||
|
||||
// Replace "\r" generated by "pihole-FTL gravity parseList" command
|
||||
$datatext = str_replace("\r", '<------', $datatext);
|
||||
|
||||
Reference in New Issue
Block a user