unbound: avoid trailing URL slashes, restrict ACL to single page

Looks like advanced page doesn't have its own ACL entry since 33a253a7487f592
but it probably should still have it?
This commit is contained in:
Franco Fichtner 2023-03-24 09:02:08 +01:00
parent fa30a8c1e4
commit dfa4bbdfd3
3 changed files with 6 additions and 6 deletions

View File

@ -82,7 +82,7 @@
<help>
<![CDATA[If this option is set, then no A/AAAA records for the configured listen interfaces will be generated.
If desired, you can manually add them in
<a href="/ui/unbound/overrides/">Unbound DNS: Overrides</a>.
<a href="/ui/unbound/overrides">Unbound DNS: Overrides</a>.
Use this to control which interface IP addresses are mapped to the system host/domain name
as well as to restrict the amount of information exposed in replies to queries for the system host/domain name.]]>
</help>

View File

@ -2,7 +2,7 @@
<page-services-dnsresolver>
<name>Services: Unbound DNS: General</name>
<patterns>
<pattern>ui/unbound/general/*</pattern>
<pattern>ui/unbound/general</pattern>
<pattern>api/unbound/general/*</pattern>
</patterns>
</page-services-dnsresolver>
@ -15,7 +15,7 @@
<page-services-dnsresolver-overrides>
<name>Services: Unbound DNS: Edit Host and Domain Override</name>
<patterns>
<pattern>ui/unbound/overrides/*</pattern>
<pattern>ui/unbound/overrides</pattern>
<pattern>api/unbound/settings/searchHostOverride/*</pattern>
<pattern>api/unbound/settings/getHostOverride/*</pattern>
<pattern>api/unbound/settings/setHostOverride/*</pattern>

View File

@ -1,9 +1,9 @@
<menu>
<Services>
<Unbound VisibleName="Unbound DNS" cssClass="fa fa-tags fa-fw">
<General order="10" url="/ui/unbound/general/"/>
<Overrides order="20" url="/ui/unbound/overrides/"/>
<Advanced order="30" url="/ui/unbound/advanced/"/>
<General order="10" url="/ui/unbound/general"/>
<Overrides order="20" url="/ui/unbound/overrides"/>
<Advanced order="30" url="/ui/unbound/advanced"/>
<ACL VisibleName="Access Lists" order="40" url="/services_unbound_acls.php">
<All url="/services_unbound_acls.php*" visibility="hidden"/>
</ACL>