ccswbs / hjckrrh

GNU General Public License v2.0
6 stars 5 forks source link

UG Migrate D6/D7 - For filenames with spaces, when replacing absolute urls with relative urls, Update Migration classes uses a space instead of %20 in the link URL #571

Open mmafe opened 7 years ago

mmafe commented 7 years ago

This relates to the Update Migration class which replaces absolute URLs with relative URLs.

When filenames have spaces in them, the Update Migration classes is inserting a space instead of %20.

This results in the following:

<a href="/site/url/filename with space.pdf">File</a>

Instead of:

<a href="/site/url/filename%20with%20space.pdf">File</a>
mmafe commented 7 years ago

Workaround: Enable Pathologic. Configuration is recommended, however, even without configuration, the module will fix up URLs so spaces are replaced by %20 in links.