From bb89fa334bb09ac21b2afbeb19a9d0ad1ede8a68 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 15 Dec 2017 16:52:56 +0100 Subject: [PATCH] added validation rules --- lam/lib/account.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 9dedfb57..74c3db6b 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -1567,7 +1567,7 @@ function printJsIncludes($prefix) { $jsFiles = array(); $jsEntry = $jsDir->read(); while ($jsEntry !== false) { - if (substr($jsEntry, strlen($jsEntry) - 3, 3) == '.js') { + if ((substr($jsEntry, strlen($jsEntry) - 3, 3) == '.js') || (substr($jsEntry, strlen($jsEntry) - 4, 4) == '.php')) { $jsFiles[] = $jsEntry; } $jsEntry = $jsDir->read(); @@ -1578,6 +1578,11 @@ function printJsIncludes($prefix) { } } +/** + * LAM exception with title and message. + * + * @author Roland Gruber + */ class LAMException extends Exception { private $title;