From: Nicolas Iooss Date: Fri, 9 May 2014 17:34:31 +0000 (+0200) Subject: Support https in blog URLs X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=1ac0ab8a236507a0847c7019989b14bc39a3fd70 Support https in blog URLs --- diff --git a/createBlog.sh b/createBlog.sh index 3d97a77..aaece90 100755 --- a/createBlog.sh +++ b/createBlog.sh @@ -78,7 +78,7 @@ while true ; do ;; -u) URL=$2; - if ! echo "${URL}" | grep -E "^http://[^/]+/" > /dev/null; then + if ! echo "${URL}" | grep -E "^https?://[^/]+/" > /dev/null; then echo -e "ERROR: URL must be a full URL, e.g 'http://www.example.org/'\n"; usage 1 fi @@ -100,7 +100,7 @@ if [[ "x${TYPE}" == "x" || "x${OWNER}" == "x" || "x${URL}" == "x" ]]; then usage 1 fi -BASEURL=`echo "${URL}" | sed -r 's,http://[^/]+/,/,'` +BASEURL=`echo "${URL}" | sed -r 's,https?://[^/]+/,/,'` echo "Creating blog with : TYPE = ${TYPE}