Improved sanitization... again (seems that the change was lost accidentaly).
This commit is contained in:
parent
e4de82aaa6
commit
5bd8f6e5ca
@ -979,11 +979,13 @@ GrafoscopioNode >> root [
|
|||||||
GrafoscopioNode >> sanitizeDefaultLink [
|
GrafoscopioNode >> sanitizeDefaultLink [
|
||||||
| defaultLink sanitized protocol |
|
| defaultLink sanitized protocol |
|
||||||
defaultLink := self lastLink.
|
defaultLink := self lastLink.
|
||||||
protocol := 'docutopia://'.
|
protocol := 'docutopia://'.
|
||||||
(defaultLink beginsWith: protocol )
|
sanitized := (defaultLink beginsWith: protocol)
|
||||||
ifTrue: [ sanitized := defaultLink copyReplaceAll: protocol with: 'https://docutopia.tupale.co/' ].
|
ifTrue: [ defaultLink
|
||||||
|
copyReplaceAll: protocol
|
||||||
|
with: 'https://docutopia.tupale.co/' ]
|
||||||
|
ifFalse: [ defaultLink ].
|
||||||
^ sanitized
|
^ sanitized
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user