From 8a226f8d59657734fd710128542d25204693e4d6 Mon Sep 17 00:00:00 2001 From: Yaco Date: Sat, 2 Feb 2019 12:24:48 -0300 Subject: hace que curl siga las redirecciones de https --- bin/wiki/GeneraSnapshot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/wiki/GeneraSnapshot.php b/bin/wiki/GeneraSnapshot.php index b92764ce..e1c0f485 100644 --- a/bin/wiki/GeneraSnapshot.php +++ b/bin/wiki/GeneraSnapshot.php @@ -52,7 +52,7 @@ function GeneraSnapshot($pagetitle, $services) { return; } // Obtiene copia de texto del articulo - $command = 'curl -s ' . $url . ' | unfluff | jq -r .text > /tmp/linkcontent'; + $command = 'curl -Ls ' . $url . ' | unfluff | jq -r .text > /tmp/linkcontent'; // echo "$command\n"; exec($command); -- cgit v1.2.1