Index: /lib/filter_functions.inc.php
===================================================================
--- /lib/filter_functions.inc.php	(revision 7551)
+++ /lib/filter_functions.inc.php	(revision 7552)
@@ -518,5 +518,5 @@
 			if (wpsg_isSizedArray($_SESSION['sanitization_err_fields'])) {
 				
-				//ob_start(); wpsg_debug($_SESSION['sanitization_err_fields']); $content .= '<div style="position:fixed; background-color:lightgrey; z-index:10000; left:50%; top:50%; width:500px; height:500px; overflow:scroll; margin-left:-250px; margin-top:-250px;">'.ob_get_contents().'</div>'; ob_end_clean();
+				ob_start(); wpsg_debug($_SESSION['sanitization_err_fields']); $content .= '<div style="position:fixed; background-color:lightgrey; z-index:10000; left:50%; top:50%; width:500px; height:500px; overflow:scroll; margin-left:-250px; margin-top:-250px;">'.ob_get_contents().'</div>'; ob_end_clean();
 				
 	        	foreach($_SESSION['sanitization_err_fields'] as $field_name => $nCalls) {
Index: /mods/wpsg_mod_deliverynote.class.php
===================================================================
--- /mods/wpsg_mod_deliverynote.class.php	(revision 7551)
+++ /mods/wpsg_mod_deliverynote.class.php	(revision 7552)
@@ -126,12 +126,20 @@
 		{
 
+			$serText = @serialize($_REQUEST['text']);
+			
 		    $this->shop->update_option('wpsg_mod_deliverynote_nrformat', $_REQUEST['wpsg_mod_deliverynote_nrformat'], false, false, WPSG_SANITIZE_TEXTFIELD);
 		    $this->shop->update_option('wpsg_mod_deliverynote_nr', $_REQUEST['wpsg_mod_deliverynote_nr'], false, false, WPSG_SANITIZE_TEXTFIELD);
-		    $this->shop->update_option('wpsg_mod_deliverynote_foottext_standard', $_REQUEST['wpsg_mod_deliverynote_foottext_standard'], false, false, WPSG_SANITIZE_TEXTFIELD);
-			$this->shop->update_option("wpsg_mod_deliverynote_texte", $_REQUEST['text'], false, false, "wpsg_txt_tbl");
+		    $this->shop->update_option('wpsg_mod_deliverynote_foottext_standard', false, false, WPSG_SANITIZE_TEXTFIELD, ['allowEmpty' => true]);
+			$this->shop->update_option('wpsg_mod_deliverynote_texte', $serText, false, false, WPSG_SANITIZE_TEXTFIELD);
 			$this->shop->update_option('wpsg_mod_deliverynote_url', $_REQUEST['wpsg_mod_deliverynote_url'], false, false, WPSG_SANITIZE_TEXTFIELD);
 			$this->shop->update_option('wpsg_mod_deliverynote_url_standard', $_REQUEST['wpsg_mod_deliverynote_url_standard'], false, false, WPSG_SANITIZE_CHECKBOX);
 			$this->shop->update_option('wpsg_mod_deliverynote_adressrow', $_REQUEST['wpsg_mod_deliverynote_adressrow'], false, false, WPSG_SANITIZE_TEXTFIELD);
-			$this->shop->update_option('wpsg_mod_deliverynote_produktattribute', $_REQUEST['wpsg_mod_deliverynote_produktattribute'], false, false, WPSG_SANITIZE_CHECKBOX);
+			
+			if ($this->shop->hasMod('wpsg_mod_produktattribute') == '1') {
+			
+				$this->shop->update_option('wpsg_mod_deliverynote_produktattribute', $_REQUEST['wpsg_mod_deliverynote_produktattribute'], false, false, WPSG_SANITIZE_CHECKBOX);
+				
+			}
+			
 			$this->shop->update_option('wpsg_mod_deliverynote_hideCountry', $_REQUEST['wpsg_mod_deliverynote_hideCountry'], false, false, WPSG_SANITIZE_CHECKBOX);
 			$this->shop->update_option('wpsg_mod_deliverynote_anr', $_REQUEST['wpsg_mod_deliverynote_anr'], false, false, WPSG_SANITIZE_VALUES, ['0', '1', '2']);
@@ -248,7 +256,8 @@
 		} // public function admin_presentation_submit()
 		
-		public function order_ajax()
-		{
-
+		public function order_ajax() {
+			
+			\check_admin_referer('wpsg-deliverynote-order_ajax-'.wpsg_getStr($_REQUEST['edit_id']));
+			
 			if(isset($_REQUEST['edit_id'])) $_REQUEST['edit_id'] = wpsg_sinput("key", $_REQUEST['edit_id']);
 
Index: /views/mods/mod_deliverynote/order_view_content.phtml
===================================================================
--- /views/mods/mod_deliverynote/order_view_content.phtml	(revision 7551)
+++ /views/mods/mod_deliverynote/order_view_content.phtml	(revision 7552)
@@ -30,4 +30,6 @@
 				<form target="_blank" method="post" id="deliverynote_order_backend" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_deliverynote&cmd=deliverynote&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>">
 				
+					<?php \wp_nonce_field('wpsg-deliverynote-order_ajax-'.$this->view['data']['id']); ?>
+					
 					<div>
 						
