Skip to content
Snippets Groups Projects
Commit bfaf5f1c authored by lucha's avatar lucha
Browse files

typo in https regex

parent 439a3c03
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment