Skip to content

Commit 4e8f54f

Browse files
committed
fixed error with ' in project name
1 parent 8d46e52 commit 4e8f54f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

module-base/src/main/java/de/intranda/goobi/plugins/ProjectExportPlugin.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.goobi.beans.Step;
3232
import org.goobi.production.enums.PluginType;
3333
import org.goobi.production.plugin.interfaces.IWorkflowPlugin;
34-
import org.goobi.vocabulary.Field;
3534
import org.goobi.vocabulary.VocabRecord;
3635

3736
import de.intranda.digiverso.normdataimporter.NormDataImporter;
@@ -254,7 +253,7 @@ private void readConfiguration(String projectName) {
254253
// 3.) project name matches and step name is *
255254
// 4.) project name and step name are *
256255
try {
257-
config = xmlConfig.configurationAt("//config[./project = '" + projectName + "']");
256+
config = xmlConfig.configurationAt("//config[./project = '" + projectName.replace("'", "\\'") + "']");
258257
} catch (IllegalArgumentException e) {
259258
try {
260259
config = xmlConfig.configurationAt("//config[./project = '*']");

0 commit comments

Comments
 (0)