From 019de938dbacba380192e4277dce937d9c4d5f79 Mon Sep 17 00:00:00 2001 From: Manish Songirkar Date: Tue, 10 Sep 2013 09:56:09 +0530 Subject: [PATCH] Fixed "/" issue in domain This will check and remove "/" if present in domain. Fixed for https://github.com/rtCamp/easyengine/issues/52 --- usr/local/sbin/easyengine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index bc6f49b8..c56a4365 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -483,10 +483,10 @@ EESITENAME() # Ask Users To Enter Domain Name read -p "Enter Domain Name: " SITENAMECHECK # Remove http:// https:// & www. - DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") + DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''") else # Remove http:// https:// & www. - DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") + DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''") fi }