Skip to content

Commit c342327

Browse files
xelanhhrutter
authored andcommitted
Allow property values containing an equal sign
1 parent 3406273 commit c342327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/pdfcpu/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ func processAddPropertiesCommand(conf *model.Configuration) {
15761576
continue
15771577
}
15781578
// Ensure key value pair.
1579-
ss := strings.Split(arg, "=")
1579+
ss := strings.SplitN(arg, "=", 2)
15801580
if len(ss) != 2 {
15811581
fmt.Fprintf(os.Stderr, "keyValuePair = 'key = value'\n")
15821582
fmt.Fprintf(os.Stderr, "usage: %s\n\n", usagePropertiesAdd)

0 commit comments

Comments
 (0)