fix: do not attempt to sprintf properties
Previously, any properties with a % would be formatted using sprintf, causing issues when consuming those values later on.
This commit is contained in:
@@ -434,7 +434,7 @@ func PropertyWrite(pluginName string, appName string, property string, value str
|
|||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
fmt.Fprintf(file, value)
|
fmt.Fprint(file, value)
|
||||||
file.Chmod(0600)
|
file.Chmod(0600)
|
||||||
SetPermissions(propertyPath, 0600)
|
SetPermissions(propertyPath, 0600)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user