Improved sanitization... again (seems that the change was lost accidentaly).

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-02-08 13:08:31 +00:00 committed by SantiagoBragagnolo
parent 29146d2d0c
commit 65849aad20
1 changed files with 6 additions and 4 deletions

View File

@ -979,11 +979,13 @@ GrafoscopioNode >> root [
GrafoscopioNode >> sanitizeDefaultLink [
| defaultLink sanitized protocol |
defaultLink := self lastLink.
protocol := 'docutopia://'.
(defaultLink beginsWith: protocol )
ifTrue: [ sanitized := defaultLink copyReplaceAll: protocol with: 'https://docutopia.tupale.co/' ].
protocol := 'docutopia://'.
sanitized := (defaultLink beginsWith: protocol)
ifTrue: [ defaultLink
copyReplaceAll: protocol
with: 'https://docutopia.tupale.co/' ]
ifFalse: [ defaultLink ].
^ sanitized
]
{ #category : #accessing }