MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Fix double escape in directory name #513

Closed bondjimbond closed 2 years ago

bondjimbond commented 2 years ago

Fixes #512 in which the dashes in the directory name are escaped twice

What does this Pull Request do?

The removed preg_quote line escapes the dashes between dates in the directory name, but elsewhere the string is escaped a second time, resulting in two backslashes which causes MIK to fail.

What's new?

Removing this line allows MIK to run properly.

How should this be tested?

Set up a Newspaper CSV run using the files that are attached to the linked issue. Run MIK on the .ini file and view the errors. Run this branch and see success.

Interested parties

@mjordan @MarcusBarnes

MarcusBarnes commented 2 years ago

@bondjimbond Great sleuthing and a nice fix!