summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2018-01-22 09:32:05 +0000
committerramon <ramongomez@us.es>2018-01-22 09:32:05 +0000
commitf7f7a213caaec5ae4b20b3c036a01a6397bda1bf (patch)
treea708dc2e6421d98458dc0516842a252dfd6df83c /admin
parent56070033854133536ab16889a08b126c064ee0ee (diff)
#828: Aplicar los cambios en el script {{{setclientmode}}} y descartar espacios iniciales y finales al obtener datos para varialbes PXE.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5575 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/includes/tftputils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php
index 17bbedf7..b1087d70 100644
--- a/admin/WebConsole/includes/tftputils.php
+++ b/admin/WebConsole/includes/tftputils.php
@@ -24,7 +24,7 @@ define("PXEDIR", "/opt/opengnsys/tftpboot/menu.lst");
* @date
*/
function cleanString ($cadena) {
- return strtr ($cadena, " áéíóúñçÁÉÍÓÚÑÇ", "_aeiouncAEIOUNC");
+ return strtr(trim($cadena), " áéíóúñçÁÉÍÓÚÑÇ", "_aeiouncAEIOUNC");
}