Update help db with regex instructions for allow and disallow site, fix a bug in regex for these urls too, a=chris
Update help db with regex instructions for allow and disallow site, fix a bug in regex for these urls too, a=chris
diff --git a/src/controllers/Controller.php b/src/controllers/Controller.php
index 1aabd21ce..b979538e2 100755
--- a/src/controllers/Controller.php
+++ b/src/controllers/Controller.php
@@ -915,9 +915,10 @@ abstract class Controller
if ($line_type == "url") {
$start_line = substr($pre_line, 0, 6);
if (!in_array($start_line,
- ["file:/", "http:/", "domain", "https:", 'gopher']) &&
+ ["file:/", "http:/", "domain", "https:", 'gopher',
+ "regex:"]) &&
$start_line[0] != "#") {
- $pre_line = "http://". $pre_line;
+ $pre_line = "https://". $pre_line;
}
}
$lines[] = $pre_line;
diff --git a/src/data/public_default.db b/src/data/public_default.db
index c2be9f050..2620bffb1 100644
Binary files a/src/data/public_default.db and b/src/data/public_default.db differ