aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:20:23 +0300
committerFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:20:23 +0300
commit69fc326c9880c281f8a5c9c5b71100a414971912 (patch)
treedf3f2769dfed18ddddd3ab30ad24606512eb445e
parentbf1be2bf4971688dfe925699c3797dac319cd4b8 (diff)
downloadwallabag-69fc326c9880c281f8a5c9c5b71100a414971912.tar.gz
wallabag-69fc326c9880c281f8a5c9c5b71100a414971912.tar.zst
wallabag-69fc326c9880c281f8a5c9c5b71100a414971912.zip
Add forgotten $ sign
Php was defaulting httpcodeOK to 'httpcodeOK' which always evaluates to true (which is incorrect)
-rwxr-xr-xreadityourself.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/readityourself.php b/readityourself.php
index 4a4661c2..2071b417 100755
--- a/readityourself.php
+++ b/readityourself.php
@@ -92,7 +92,7 @@ function get_external_file($url, $timeout) {
92 } 92 }
93 93
94 // if response is not empty and response is OK 94 // if response is not empty and response is OK
95 if (isset($data) and isset($httpcodeOK) and httpcodeOK ) { 95 if (isset($data) and isset($httpcodeOK) and $httpcodeOK ) {
96 96
97 // take charset of page and get it 97 // take charset of page and get it
98 preg_match('#<meta .*charset=.*>#Usi', $data, $meta); 98 preg_match('#<meta .*charset=.*>#Usi', $data, $meta);