Index: /changelog
===================================================================
--- /changelog	(revision 7687)
+++ /changelog	(revision 7688)
@@ -343,3 +343,3 @@
 - Bugfix: E-Mail in HTML Mail korrekt verlinkt
 - Bugfix: FÃŒllmengenpreisanzeige in ProduktÃŒbersichten korrigiert
-- Bugfix: DownloadProdukt erlaubt noch base64 kodierte Strings aufgrund von AbwÃ€rtskompatibilitÃ€t
+- Bugfix: Plugin zur AbwÃ€rtskompatibilitÃ€t alter DownloadProduktlinks entwickelt (https://wpshopgermany.maennchen1.de/wp-content/uploads/wpsg_downloadredirect.zip)
Index: /mods/wpsg_mod_downloadprodukte.class.php
===================================================================
--- /mods/wpsg_mod_downloadprodukte.class.php	(revision 7687)
+++ /mods/wpsg_mod_downloadprodukte.class.php	(revision 7688)
@@ -535,8 +535,6 @@
 						{
 							$_file = $f;
-							
-							// The base64_decode is neccessary for backward compatibility of old links
-							$decoded_file = base64_decode($_REQUEST['file']);
-							if ($decoded_file === false) $decoded_file = rawurldecode($_REQUEST['file']);
+							 
+							$decoded_file = rawurldecode($_REQUEST['file']);
 							
 							if ($_file == $decoded_file)
Index: /wpshopgermany.php
===================================================================
--- /wpshopgermany.php	(revision 7687)
+++ /wpshopgermany.php	(revision 7688)
@@ -280,2 +280,21 @@
 	$shop->callMods('load', array());
 	
+	/*
+	add_action('template_redirect', function() {
+		
+		if (($_REQUEST['m_id']??'') == '601' && isset($_REQUEST['file']) && isset($GLOBALS['wpsg_sc'])) {
+			
+			$encoded_file = base64_decode($_REQUEST['file']);
+			
+			if ($encoded_file !== false) {
+				
+				$url = get_permalink(wpsg_ShopController::getShop()->get_option('wpsg_page_basket'))."&plugin=1&noheader=1&m_id=".$this->id."&order=".$_REQUEST['order_id']."&file=".rawurlencode($encoded_file)."&produkt=".$_REQUEST['produkt']."&chash=".$_REQUEST['chash']."\r\n\r\n";
+				
+				header('Redirect: '.$url);	
+				exit;
+				
+			}
+			
+		}
+		
+	}, 9); */
