From d62b3234d0ddc9cb73c402a2f61a00b8b0af8b90 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sun, 18 Feb 2018 16:40:00 -0800
Subject: [PATCH] Host shouldn't be slashed

---
 inc/class-options.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/inc/class-options.php b/inc/class-options.php
index b2addfd..8884776 100644
--- a/inc/class-options.php
+++ b/inc/class-options.php
@@ -98,6 +98,11 @@ class Options {
 		switch ( $option ) {
 			case 'host':
 				$value = esc_url( $value );
+
+				if ( ! empty( $value ) ) {
+					$value = untrailingslashit( $value );
+				}
+
 				break;
 
 			case 'key':
-- 
GitLab