6 Commits

Author SHA1 Message Date
RD WebDesign
844f16e5e9 Remove mg.request_info.request_uri from error403.lp
This page is currently not used because we redirect to login page in case
of unauthenticated access, but I'm removing it just in case we decide to
change how we handle 403 errors in the future.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-10-19 18:52:40 -03:00
RD WebDesign
8c0f785351 Replace mg.request_info.request_uri with the variable scriptname
The information from `mg.request_info.request_uri` depends on the URL typed
by the user. This information was used without any sanitization, allowing
an attacker to send crafted links containing anything, including javascript
code, which could be loaded and executed in a few pages.

Replacing this value with `scriptname` variable fixes the issue, since this
variable contains the name of the file currently being executed. This
information cannot be externally manipulated and it is safe to be used on
the page.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-10-19 18:44:52 -03:00
H3xCat
115b7a858b Fix closing head tag formatting
Signed-off-by: H3xCat <2304691+h3xcat@users.noreply.github.com>
2025-09-17 23:30:59 -07:00
XhmikosR
66f9c38d03 Make use of the new format_path function to add the current page in body
This will allow us to target specific pages more easily

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2025-05-04 09:56:56 +03:00
yubiuser
1e922a8b29 Move all files from /scripts/pi-hole/ to /scripts/
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-10-28 20:22:09 +01:00
DL6ER
caef160c55 Add HTTP 403 error page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-19 11:39:33 +01:00