From bfaf5f1cdfd3e991fec5b1830727d0c250d7694a Mon Sep 17 00:00:00 2001
From: lucha <lucha@paranoici.org>
Date: Wed, 23 Nov 2016 16:04:58 +0100
Subject: [PATCH] typo in https regex

---
 bin/noblogs.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/noblogs.in b/bin/noblogs.in
index 13302a8..91c2f2e 100755
--- a/bin/noblogs.in
+++ b/bin/noblogs.in
@@ -440,7 +440,7 @@ function do_ngg_convert($args) {
 
 // replaces http with https, and removes ending slash
 function add_https_to_uri($uri){
-    $re = "http[s]?:\/\/([^.]+\.noblogs\.org)[/]?/i";
+    $re = "#^http[s]?://([^.]+\.noblogs\.org)[/]?$#i";
     $subst = "https://$1";
     return preg_replace($re,$subst,$uri);
 }
-- 
GitLab