mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
Add forgotten $ sign
Php was defaulting httpcodeOK to 'httpcodeOK' which always evaluates to true (which is incorrect)
This commit is contained in:
parent
bf1be2bf49
commit
69fc326c98
@ -92,7 +92,7 @@ function get_external_file($url, $timeout) {
|
||||
}
|
||||
|
||||
// if response is not empty and response is OK
|
||||
if (isset($data) and isset($httpcodeOK) and httpcodeOK ) {
|
||||
if (isset($data) and isset($httpcodeOK) and $httpcodeOK ) {
|
||||
|
||||
// take charset of page and get it
|
||||
preg_match('#<meta .*charset=.*>#Usi', $data, $meta);
|
||||
|
Loading…
Reference in New Issue
Block a user