From: hickert Date: Fri, 12 Oct 2007 07:18:11 +0000 (+0000) Subject: Udpated printer ppd saving. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31ee8c082130a89d753cf550c037c3186b024884;p=gosa.git 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 --- 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 */