From f29dbdb218358d4cae07b2e1de476fdf4fbef321 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 10 Jan 2006 09:05:02 +0000 Subject: [PATCH] Added tweak for monitor autodetection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2428 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationService.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index d226a77ef..dd41f8bc3 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -215,12 +215,12 @@ class workservice extends plugin /* Check vsync for correct usage */ $val= preg_replace ("/\s/", "", $this->gotoXVsync); - if (!preg_match ("/^\d+(\.\d+)?(\-\d+(\.\d+)?)?$/", $val) + if (!preg_match ("/^\d+(\.\d+)?([-+]\d+(\.\d+)?)?$/", $val) && chkacl ($this->acl, "gotoXVsync") == ""){ $message[]= _("Please specify a valid VSync range."); } elseif (chkacl ($this->acl, "gotoXVsync") == ""){ - list($v1,$v2)= split ("-", $val); + list($v1,$v2)= preg_split ("/[-+]/", $val); if ($v2 != ""){ if ($v1 > $v2){ $message[]= _("Please specify a valid VSync range."); @@ -230,12 +230,12 @@ class workservice extends plugin /* Check hsync for correct usage */ $val= preg_replace ("/\s/", "", $this->gotoXHsync); - if (!preg_match ("/^\d+(\.\d+)?(\-\d+(\.\d+)?)?$/", $val) + if (!preg_match ("/^\d+(\.\d+)?([-+]\d+(\.\d+)?)?$/", $val) && chkacl ($this->acl, "gotoXHsync") == ""){ $message[]= _("Please specify a valid HSync range."); } elseif (chkacl ($this->acl, "gotoXHsync") == ""){ - list($v1,$v2)= split ("-", $val); + list($v1,$v2)= preg_split ("/[-+]/", $val); if ($v2 != ""){ if ($v1 > $v2){ $message[]= _("Please specify a valid HSync range."); -- 2.30.2