Skip to content

Commit 3bef2eb

Browse files
committed
Replace 'censored' with 'redacted'
1 parent 0d4334b commit 3bef2eb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@ ClassMethod GetConfiguredRemote() As %String
28072807
return url
28082808
}
28092809

2810-
ClassMethod GetCensoredRemote() As %String
2810+
ClassMethod GetRedactedRemote() As %String
28112811
{
28122812
set url = ..GetConfiguredRemote()
28132813
set username= $piece($piece(url,":",3),"@",1)

cls/SourceControl/Git/WebUIDriver.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ ClassMethod GetHomeURL() As %String
411411

412412
ClassMethod GetRemote() As %Library.DynamicObject
413413
{
414-
set remote = ##class(SourceControl.Git.Utils).GetCensoredRemote()
414+
set remote = ##class(SourceControl.Git.Utils).GetRedactedRemote()
415415
quit {"remote": (remote)}
416416
}
417417

csp/gitprojectsettings.csp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ body {
7979
set homeURL = ##class(SourceControl.Git.WebUIDriver).GetHomeURL()
8080

8181
set settings = ##class(SourceControl.Git.Settings).%New()
82-
set remote = ##class(SourceControl.Git.Utils).GetCensoredRemote()
82+
set remote = ##class(SourceControl.Git.Utils).GetRedactedRemote()
8383
/// After Save
8484
if $Data(%request.Data("gitsettings",1)) {
8585
for param="gitUserName","gitUserEmail" {
@@ -98,7 +98,7 @@ body {
9898

9999
set newRemote = $Get(%request.Data("remoteRepo",1))
100100
// If entry was modified, set new remote repo
101-
if (newRemote '= ##class(SourceControl.Git.Utils).GetCensoredRemote()) {
101+
if (newRemote '= ##class(SourceControl.Git.Utils).GetRedactedRemote()) {
102102
do ##class(SourceControl.Git.Utils).SetConfiguredRemote(newRemote)
103103
}
104104

@@ -340,7 +340,7 @@ body {
340340
<div class="col-sm-7">
341341
<input type="text" class="form-control" id="remoteRepo" name="remoteRepo" value='#(..EscapeHTML(remote))#' placeholder="ex. [email protected]:User/UserRepo.git"/>
342342
<div class = "neutral-feedback">
343-
(Username is censored)
343+
(Username is redacted)
344344
</div>
345345
</div>
346346
</div>

0 commit comments

Comments
 (0)