From: hickert Date: Fri, 11 Nov 2005 10:53:58 +0000 (+0000) Subject: Fixed append problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7cd254168d98f8f700dca0c3006d21c25a23b960;p=gosa.git Fixed append problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1919 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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