From 6970be8fa516d457d1e49c69e536ac0429493380 Mon Sep 17 00:00:00 2001 From: OffrayLuna Date: Mon, 25 Sep 2017 09:43:59 +0000 Subject: [PATCH] Fixing downloading of documents from the Web. --- src/Grafoscopio-Utils/GrafoscopioUtils.class.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Grafoscopio-Utils/GrafoscopioUtils.class.st b/src/Grafoscopio-Utils/GrafoscopioUtils.class.st index 83c9d5d..b85f580 100644 --- a/src/Grafoscopio-Utils/GrafoscopioUtils.class.st +++ b/src/Grafoscopio-Utils/GrafoscopioUtils.class.st @@ -68,9 +68,9 @@ GrafoscopioUtils class >> sanitize: url [ operations that rely on sane and well formed urls don't throw error messages." | sanitized modUrl | modUrl := url. - [modUrl endsWith: ' '] + [modUrl asString endsWith: ' '] whileTrue: [ modUrl := modUrl copyFrom: 1 to: (modUrl size - 1) ]. - (url beginsWith: 'http://') + (url asString beginsWith: 'http://') ifFalse: [ sanitized := ('http://', modUrl) asUrl ] ifTrue: [ sanitized := modUrl asUrl ]. ^ sanitized