From 31ee8c082130a89d753cf550c037c3186b024884 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Oct 2007 07:18:11 +0000 Subject: [PATCH] Udpated printer ppd saving. replace all not printable characters of ppd name with _ . git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDDialog.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index e7073aa16..6a9c37df6 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -189,7 +189,7 @@ class printerPPDDialog extends plugin $Model = trim(preg_replace("/".$Vendor."/","",$Name)); } - $PrinterName = $this->cn."-".$Name; + $PrinterName = $this->cn."-".preg_replace("/[^a-z0-9-_\.]/i","_",$Name); $PPDName = $Vendor."/".$PrinterName.".ppd"; /* Create the vendors path, if it doesn't exists already */ -- 2.30.2