From 05bce163959ffe32107ff5e63c9b027e5c5a4300 Mon Sep 17 00:00:00 2001 From: Alec Sanger Date: Wed, 9 Oct 2013 13:29:32 -0400 Subject: [PATCH] Fixes one more issue with slashes in the serialized data --- lib/tasks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks.php b/lib/tasks.php index 23e283c..1ac1031 100644 --- a/lib/tasks.php +++ b/lib/tasks.php @@ -79,7 +79,7 @@ if(isset($app['merge_url'])) $app->old_url = $app['merge_url']; info("premerge","replace {$app->old_url} with {$app->env->url}"); $sql = preg_replace("|http://{$app->old_url}|", "http://{$app->env->url}", $sql); - $sql = preg_replace_callback('|s:(\d+):\\\?"(.*?)\\\?";|', function($matches) { return "s:" . strlen($matches[2]) . ":\"" . $matches[2] . "\";"; }, $sql); + $sql = preg_replace_callback('|s:(\d+):\\\?"(.*?)\\\?";|', function($matches) { return "s:" . strlen(stripslashes($matches[2])) . ":\"" . $matches[2] . "\";"; }, $sql); } $sql = $sql."\nUPDATE {$app->env->wordpress["db_prefix"]}options SET option_value=\"http://{$app->env->url}\" WHERE option_name=\"siteurl\" OR option_name=\"home\";\n";