a few issues: block public not blocking mod_cal, typo in sql for one clone file sync operation, fix_system_urls not catching cached contact photos, extend sessionhandler expiration when remember_me is enabled as the stored session is expiring long before the browser session.

This commit is contained in:
redmatrix
2016-04-10 16:56:08 -07:00
parent c0bdcfedeb
commit abfbe9c937
7 changed files with 50 additions and 15 deletions
+18
View File
@@ -1542,6 +1542,24 @@ function fix_system_urls($oldurl, $newurl) {
proc_run('php', 'include/notifier.php', 'refresh_all', $c[0]['channel_id']);
}
}
// now replace any remote xchans whose photos are stored locally (which will be most if not all remote xchans)
$r = q("select * from xchan where xchan_photo_l like '%s'",
dbesc($oldurl . '%')
);
if($r) {
foreach($r as $rr) {
$x = q("update xchan set xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s' where xchan_hash = '%s'",
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_l'])),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_m'])),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_s'])),
dbesc($rr['xchan_hash'])
);
}
}
}