Index: /mods/wpsg_mod_autodebit.class.php
===================================================================
--- /mods/wpsg_mod_autodebit.class.php	(revision 7495)
+++ /mods/wpsg_mod_autodebit.class.php	(revision 7496)
@@ -185,4 +185,26 @@
 			}
 			
+			// Ging leider nicht anders, da die ID der onepagecheckoutseite noch nicht abgefragt werden kann
+			// Sollte denk ich nicht zu problemen fÃŒhren wenn die Abfrage immer im hint drin ist, er wird ohnehin nur im checkout verwendet
+			if (
+				isset($_REQUEST['wpsg_checkout2']) ||
+				(isset($_REQUEST['wpsg_checkout']) && $this->shop->hasMod('wpsg_mod_onepagecheckout')) ||
+				true
+			)
+			{
+				
+				$this->shop->view['error'] = wpsg_getArray($_SESSION['wpsg']['errorFields']);
+				
+				$this->shop->view['wpsg_mod_autodebit']['name'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_name']);
+				$this->shop->view['wpsg_mod_autodebit']['blz'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_blz']);
+				$this->shop->view['wpsg_mod_autodebit']['bic'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_bic']);
+				$this->shop->view['wpsg_mod_autodebit']['inhaber'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_inhaber']);
+				$this->shop->view['wpsg_mod_autodebit']['knr'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_knr']);
+				$this->shop->view['wpsg_mod_autodebit']['iban'] = wpsg_xss($_SESSION['wpsg']['checkout']['mod_autodebit_iban']);
+				
+				$arPayment[$this->id]['hint'] .= $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_autodebit/paymenthint.phtml', false);
+								
+			}
+			
 		} // public function addPayment(&$arPayment)
 		 
@@ -214,17 +236,17 @@
 			{
 		 
-				$_SESSION['wpsg']['checkout']['mod_autodebit_name'] = wpsg_sinput("text_field", "text_field", $_REQUEST['wpsg_mod_autodebit']['name']);
-				//$_SESSION['wpsg']['checkout']['mod_autodebit_blz'] = wpsg_xss($_REQUEST['wpsg_mod_autodebit']['blz']);
-				$_SESSION['wpsg']['checkout']['mod_autodebit_bic'] = wpsg_sinput("key", $_REQUEST['wpsg_mod_autodebit']['bic']);
-				$_SESSION['wpsg']['checkout']['mod_autodebit_inhaber'] = wpsg_sinput("user", $_REQUEST['wpsg_mod_autodebit']['inhaber']);
-				//$_SESSION['wpsg']['checkout']['mod_autodebit_knr'] = wpsg_xss($_REQUEST['wpsg_mod_autodebit']['knr']);
-				$_SESSION['wpsg']['checkout']['mod_autodebit_iban'] = wpsg_sinput("key", $_REQUEST['wpsg_mod_autodebit']['iban']);
-				
-				$arCheckout['mod_autodebit_name'] = wpsg_sinput("text_field", $_SESSION['wpsg']['checkout']['mod_autodebit_name']);
-				$arCheckout['mod_autodebit_blz'] = wpsg_sinput("key", $_SESSION['wpsg']['checkout']['mod_autodebit_blz']);
-				$arCheckout['mod_autodebit_bic'] = wpsg_sinput("key", $_SESSION['wpsg']['checkout']['mod_autodebit_bic']);
-				$arCheckout['mod_autodebit_inhaber'] = wpsg_sinput("user", $_SESSION['wpsg']['checkout']['mod_autodebit_inhaber']);
-				$arCheckout['mod_autodebit_knr'] = wpsg_sinput("key", $_SESSION['wpsg']['checkout']['mod_autodebit_knr']);
-				$arCheckout['mod_autodebit_iban'] = wpsg_sinput("key", $_SESSION['wpsg']['checkout']['mod_autodebit_iban']);
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['name'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_name'] = $_REQUEST['wpsg_mod_autodebit']['name'];
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['bic'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_bic'] = $_REQUEST['wpsg_mod_autodebit']['bic'];
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['inhaber'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_inhaber'] = $_REQUEST['wpsg_mod_autodebit']['inhaber'];
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['iban'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_iban'] = $_REQUEST['wpsg_mod_autodebit']['iban'];
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['blz'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_blz'] = $_REQUEST['wpsg_mod_autodebit']['blz'];
+				if (wpsg_checkInput($_REQUEST['wpsg_mod_autodebit']['knr'], WPSG_SANITIZE_TEXTFIELD)) $_SESSION['wpsg']['checkout']['mod_autodebit_knr'] = $_REQUEST['wpsg_mod_autodebit']['knr'];
+				
+				$arCheckout['mod_autodebit_name'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_name'];
+				$arCheckout['mod_autodebit_blz'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_blz'];
+				$arCheckout['mod_autodebit_bic'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_bic'];
+				$arCheckout['mod_autodebit_inhaber'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_inhaber'];
+				$arCheckout['mod_autodebit_knr'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_knr'];
+				$arCheckout['mod_autodebit_iban'] = @$_SESSION['wpsg']['checkout']['mod_autodebit_iban'];
 
 			}
