coming together
All checks were successful
Build and push / Pulling repo on server (push) Successful in 24s

This commit is contained in:
2023-10-21 21:30:20 +02:00
parent bf101b3b26
commit 927d498d4a
7 changed files with 20 additions and 9 deletions

View File

@ -105,7 +105,8 @@ class Page
//render template by running include
ob_start();
extract($this->variables);
include($templatefile);
if($templatefile!= '')
include($templatefile);
$pagecontent = ob_get_contents();
ob_end_clean();

View File

@ -167,4 +167,9 @@ function gen_uuid() {
// 48 bits for "node"
mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
);
}
function escape($str)
{
return htmlspecialchars($str, ENT_QUOTES, 'UTF-8');
}