summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorGerry Weißbach <gerry.w@gammaproduction.de>2014-08-29 11:59:15 +0200
committerGerry Weißbach <gerry.w@gammaproduction.de>2014-08-29 11:59:15 +0200
commit5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c (patch)
treef21a22e5c1ef7f9a8ecd78370cb94472c7407279 /inc/infoutils.php
parent04585e6c37e0352a5bc568fc8c938aeafa1c160e (diff)
parent12e60eea4f8a0a84213b972847203e57e590c59b (diff)
downloadrpg-5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c.tar.gz
rpg-5e7f4d50cbbc788c9c0483a0a2ff1b536e4ffe8c.tar.bz2
Merge branch 'master' of https://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index db856141f..f9ba11560 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -30,7 +30,12 @@ function checkUpdateMessages(){
$http = new DokuHTTPClient();
$http->timeout = 12;
$data = $http->get(DOKU_MESSAGEURL.$updateVersion);
- io_saveFile($cf,$data);
+ if(substr(trim($data), -1) != '%') {
+ // this doesn't look like one of our messages, maybe some WiFi login interferred
+ $data = '';
+ }else {
+ io_saveFile($cf,$data);
+ }
}else{
dbglog("checkUpdateMessages(): messages.txt up to date");
$data = io_readFile($cf);