Skip to content

Commit a5f3759

Browse files
authored
Merge pull request #564 from intersystems/issue-356
Process input to Configure()
2 parents ead95c8 + f056c2f commit a5f3759

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Make sure more fetch calls prune the remote branches (#471)
3131
- Force export of item if it has been modified (#354)
3232
- Production configuration page no longer closes Sync/WebUI when operations there change the production (#542)
33+
- Remove leading/trailing spaces from input to Configure() (#356)
3334

3435
## [2.6.0] - 2024-10-07
3536

cls/SourceControl/Git/Settings.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ ClassMethod Configure() As %Boolean [ CodeMode = objectgenerator ]
180180
do %code.WriteLine(" set valid = 0")
181181
do %code.WriteLine(" while ('valid) {")
182182
do %code.WriteLine(" set response = ##class(%Library.Prompt).GetString("_promptQuoted_",.value,,,,"_defaultPromptFlag_")")
183+
do %code.WriteLine(" set value = $zstrip(value,""<>W"")")
183184
do %code.WriteLine(" set status = inst.ConfigureBinPath(.value)")
184185
do %code.WriteLine(" if (status) { set valid = 1 }")
185186
do %code.WriteLine(" }")
@@ -206,6 +207,7 @@ ClassMethod Configure() As %Boolean [ CodeMode = objectgenerator ]
206207
do %code.WriteLine(" set response = ##class(%Library.Prompt).GetString("_promptQuoted_",.value,,,,"_defaultPromptFlag_")")
207208
}
208209
do %code.WriteLine(" if response '= $$$SuccessResponse { quit 0 }")
210+
do %code.WriteLine(" set value = $zstrip(value,""<>W"")")
209211
do %code.WriteLine(" set inst."_property_" = value")
210212

211213
}

0 commit comments

Comments
 (0)