{"action":"opened","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson-Shortcodes-Extension/issues/19","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson-Shortcodes-Extension/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson-Shortcodes-Extension/issues/19/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson-Shortcodes-Extension/issues/19/events","html_url":"https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/issues/19","id":65634994,"number":19,"title":"Image shortcode / Upload type URL problem","user":{"login":"ierpe","id":790992,"avatar_url":"https://avatars.githubusercontent.com/u/790992?v=3","gravatar_id":"","url":"https://api.github.com/users/ierpe","html_url":"https://github.com/ierpe","followers_url":"https://api.github.com/users/ierpe/followers","following_url":"https://api.github.com/users/ierpe/following{/other_user}","gists_url":"https://api.github.com/users/ierpe/gists{/gist_id}","starred_url":"https://api.github.com/users/ierpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ierpe/subscriptions","organizations_url":"https://api.github.com/users/ierpe/orgs","repos_url":"https://api.github.com/users/ierpe/repos","events_url":"https://api.github.com/users/ierpe/events{/privacy}","received_events_url":"https://api.github.com/users/ierpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T08:45:23Z","updated_at":"2015-04-01T08:45:23Z","closed_at":null,"body":"Hi,\r\n\r\nAs developers, we are working on local servers with development URLs, and we have deployment scripts that automatically replace our development URLs with the testing or production URLs.\r\nFor example, ``` loc-mysite.org ``` will be automatically replaced with ``` mysite-org ``` everywhere in the database when I deploy on a production server.\r\n\r\nIt seems that with the image shortcode, the  ``` / ``` characters are escaped with ``` \\\\ ``` in the page builder code that is saved in the database.\r\nBecause some of the URLs in the builder code are escaped / encoded, they are not replaced correctly with the db replace script.\r\nIt's working fine when adding an image with the text block shortcode for example.\r\n\r\nCode sample :\r\n```\r\n[media_image image=\"{&quot;attachment_id&quot;:&quot;84&quot;,&quot;url&quot;:&quot;\\\\/\\\\/dev.loc.com\\\\/mysite\\\\/web\\\\/app\\\\/uploads\\\\/2015\\\\/03\\\\/circle-riz.png&quot;}\" width=\"\" height=\"\" link=\"\" target=\"_self\" _array_keys=\"{&quot;image&quot;:&quot;image&quot;}\" _made_with_builder=\"true\"][/media_image]\r\n```\r\nIn this example ``` dev.loc.com/mysite/web/ ``` should be replaced, but since it is escaped as ``` dev.loc.com\\\\/mysite\\\\/web\\\\/ ```, the db replacement is not working.\r\n\r\nThis problem occurs with the image shortcode, but also with any \"upload\" option type used in the shortcodes we are creating.\r\n\r\nWhat do you think?\r\n"}}