From 8f509a0133aae380a53e9959bd7bfca4558d1ce4 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 25 Sep 2017 09:43:59 +0000 Subject: [PATCH] Fixing downloading of documents from the Web. --- repository/Grafoscopio-Utils/GrafoscopioUtils.class.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/Grafoscopio-Utils/GrafoscopioUtils.class.st b/repository/Grafoscopio-Utils/GrafoscopioUtils.class.st index 83c9d5d..b85f580 100644 --- a/repository/Grafoscopio-Utils/GrafoscopioUtils.class.st +++ b/repository/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