From 4925f7fc53e5971541e1fcfcbd38597a7536a2e8 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 24 Aug 2013 17:05:01 -0700 Subject: another issue with site rename --- boot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 11e805e8b..c0911cc19 100755 --- a/boot.php +++ b/boot.php @@ -1284,8 +1284,8 @@ function fix_system_urls($oldurl,$newurl) { // that they can clean up their hubloc tables (this includes directories). // It's a very expensive operation so you don't want to have to do it often or after your site gets to be large. - $r = q("select * from xchan left join channel on channel_hash = xchan_hash where xchan_url = '%s'", - dbesc($oldurl) + $r = q("select * from xchan left join channel on channel_hash = xchan_hash where xchan_url like '%s'", + dbesc($oldurl . '%') ); if($r) { foreach($r as $rr) { -- cgit v1.2.3