FIX: migrate_to_s3 task should remap attachment links too.

FIX: migrate_to_s3 task should remap attachment links too.

diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index 03f7426..ebeeca9 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -411,6 +411,14 @@ def migrate_to_s3
         "src='#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1"
       ],
       [
+        "href=\"/uploads/#{db}/original/(\\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\\.]*)",
+        "href=\"#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1"
+      ],
+      [
+        "href='/uploads/#{db}/original/(\\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\\.]*)",
+        "href='#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1"
+      ],
+      [
         "\\[img\\]/uploads/#{db}/original/(\\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\\.]*)\\[/img\\]",
         "[img]#{SiteSetting.Upload.s3_base_url}/#{prefix}\\1[/img]"
       ]

GitHub sha: 7b82850f