summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/varios/incorporaordenadores.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/WebConsole/varios/incorporaordenadores.php b/admin/WebConsole/varios/incorporaordenadores.php
index ec303ea0..2615fbad 100644
--- a/admin/WebConsole/varios/incorporaordenadores.php
+++ b/admin/WebConsole/varios/incorporaordenadores.php
@@ -108,6 +108,8 @@ function procesaLineas($cmd,$idaula,$buffer)
$MAC="";
$IP="";
$sw=false;
+ // Eliminamos comentarios a final de lĂ­nea
+ $buffer = preg_replace(array("/\#.*\r\n/", "/\#.*\r/", "/\#.*\n/"), "", $buffer."\n");
$equipos = preg_split('/}/',$buffer);