diff --git a/components/editorControls/tinyMCE3/webcontrol/TinyMCEWebControl.cs b/components/editorControls/tinyMCE3/webcontrol/TinyMCEWebControl.cs
index 730442344e..770239a15e 100644
--- a/components/editorControls/tinyMCE3/webcontrol/TinyMCEWebControl.cs
+++ b/components/editorControls/tinyMCE3/webcontrol/TinyMCEWebControl.cs
@@ -288,7 +288,7 @@ namespace umbraco.editorControls.tinyMCE3.webcontrol
string localMediaPath = IOHelper.ResolveUrl(SystemDirectories.Media);
// Find all media images
- string pattern = String.Format("
]*src=\"(?{0}[^\"]*)\" [^>]*>", SystemDirectories.Media);
+ string pattern = String.Format("
]*src=\"(?{0}[^\"]*)\" [^>]*>", localMediaPath);
MatchCollection tags =
Regex.Matches(html, pattern, RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);