mirror of
https://github.com/friendica/friendica
synced 2025-04-30 21:44:22 +02:00
Cleanup
This commit is contained in:
parent
a338e4cbff
commit
06371d29a6
5 changed files with 19 additions and 14 deletions
|
@ -429,6 +429,11 @@ class Probe
|
|||
return false;
|
||||
}
|
||||
|
||||
// If the file is too large then exit
|
||||
if (($curlResult->getInfo()['download_content_length'] ?? 0) > 1000000) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If it isn't a HTML file then exit
|
||||
if (($curlResult->getContentType() != '') && !strstr(strtolower($curlResult->getContentType()), 'html')) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue