Merge pull request #635 from heavygale/patch-3

htpasswd only on configured paths
This commit is contained in:
Michael Kaufmann
2019-01-14 06:31:42 +01:00
committed by GitHub

View File

@@ -849,6 +849,7 @@ class Nginx extends HttpConfigBase
FROM `" . TABLE_PANEL_HTPASSWDS . "` AS a
JOIN `" . TABLE_PANEL_DOMAINS . "` AS b USING (`customerid`)
WHERE b.customerid = :customerid AND b.domain = :domain
AND path LIKE CONCAT(b.documentroot, '%')
");
Database::pexecute($result_stmt, array(
'customerid' => $domain['customerid'],