Looks like the
DbHelper.remap call needs a little more info or a 2nd call.
from variable is equal to something like
And the post values contain something like this:
"Example\n<img src='/uploads/default/37/634ed4531d491595.jpg'>\nSome other string",
"<p>Example<br>\n\n<p><img src=\"//example.com/uploads/default/37/634ed4531d491595.jpg\" width=\"100\" height=\"100\"><br>Some other string</p>",
raw value is getting correctly replaced but the
cooked value is not.
To me this would suggest that there are two calls to
- Firstly a new call - where the
from value is in the form
//<domain><optional slash + subfolder><upload.url>.
- Then the current call.
You might need to URL / HTML encode special characters for the "subfolder" part where someone has chosen some crazy subfolder install path, perhaps CJKV characters etc.
Completing in this order with the longer more specific target first to avoid an incorrect partial replacement.