Skip to content

Commit

Permalink
Security Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkalam24 committed Feb 23, 2023
1 parent 927214b commit 256f254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion theme/rui/invoice-print.php
Expand Up @@ -105,7 +105,7 @@
if (isset($_GET["invoiceType"]) and !empty($_GET["invoiceType"])) {


$invoicePage = DIR_MODULE . "invoice/{$_GET['invoiceType']}.php";
$invoicePage = DIR_MODULE . "invoice/". basename("{$_GET['page']}.php");

if (file_exists($invoicePage)) {
require $invoicePage;
Expand Down
4 changes: 3 additions & 1 deletion theme/rui/print.php
Expand Up @@ -99,7 +99,9 @@
}

if(isset($_GET["page"]) and !empty($_GET["page"])) {
$printPage = DIR_MODULE . "print/{$_GET['page']}.php";


$printPage = DIR_MODULE . "print/". basename("{$_GET['page']}.php");

if(file_exists($printPage)) {
require $printPage;
Expand Down

0 comments on commit 256f254

Please sign in to comment.