From 30257c136e32a90bc84635f40b48b597eb860d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gigandet?= Date: Tue, 10 Dec 2024 11:57:39 +0100 Subject: [PATCH] fix: product image move #11067 (#11092) fixes https://github.com/openfoodfacts/openfoodfacts-server/issues/11067 --- cgi/product_image_move.pl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cgi/product_image_move.pl b/cgi/product_image_move.pl index cd2e0f951de7f..874d2a220495a 100644 --- a/cgi/product_image_move.pl +++ b/cgi/product_image_move.pl @@ -48,10 +48,7 @@ my $code = normalize_code(single_param('code')); my $imgids = single_param('imgids'); my $move_to = single_param('move_to_override'); -if ($move_to =~ /^(off|obf|opf|opff)$/) { - $move_to .= ':' . $code; -} -elsif ($move_to ne 'trash') { +if ($move_to ne 'trash') { $move_to = normalize_code($move_to); } my $copy_data = single_param('copy_data_override'); @@ -223,14 +220,6 @@ $response{url} = product_url($move_to); - # URL on another server? - my $server = server_for_product_id($move_to); - if (defined $server) { - my $url = "https://" . $subdomain . "." . $options{other_servers}{$server}{domain} . $response{url}; - $url =~ s/\/([a-z]+):([0-9])/\/$2/; - $response{url} = $url; - } - $response{link} = '' . $move_to . ''; }