mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-19 11:43:24 +01: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