From 7cd254168d98f8f700dca0c3006d21c25a23b960 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Nov 2005 10:53:58 +0000 Subject: [PATCH] Fixed append problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1919 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 4493e0be4..819d495db 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -1,5 +1,12 @@ gotoPrinterPPD)){ - $this->gotoPrinterPPD = preg_replace("/http.*ppd\//i","",$this->gotoPrinterPPD); + $this->gotoPrinterPPD = preg_replace("/^http.*ppd\//i","",$this->gotoPrinterPPD); } /* In case of gotoWorkstation this tab is calles from workstation plugin @@ -521,8 +528,9 @@ class printgeneric extends plugin } if(!is_array($this->attrs['gotoPrinterPPD'])) { - $str = $method.$_SERVER['SERVER_NAME']."/ppd"; + $str = $method.$_SERVER['SERVER_NAME']."/ppd/"; $this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD']; + $this->attrs['gotoPrinterPPD'] = str_replace("//","/",$this->attrs['gotoPrinterPPD']); } /* Append printer user -- 2.30.2