Skip to content

Commit bd08939

Browse files
committed
reescreve urls de cache da wayback machine
1 parent 25e3494 commit bd08939

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/inc/URLAnalyzer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ private function fetchFromWaybackMachine($url)
202202
// Remove o toolbar do Wayback Machine
203203
$content = preg_replace('/<!-- BEGIN WAYBACK TOOLBAR INSERT -->.*?<!-- END WAYBACK TOOLBAR INSERT -->/s', '', $content);
204204

205+
// Remove URLs de cache do Wayback Machine
206+
$content = preg_replace('/https?:\/\/web\.archive\.org\/web\/\d+im_\//', '', $content);
207+
205208
return $content;
206209
}
207210

0 commit comments

Comments
 (0)