diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index a74f3c11..e60d7dba 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -63,7 +63,7 @@ class lamList { /** sort column name */ protected $sortColumn; - + /** sort direction: 1 for ascending, -1 for descending */ protected $sortDirection = 1; @@ -75,7 +75,7 @@ class lamList { /** LDAP entries */ protected $entries; - + /** sort mapping for entries array(original index => sorted index) */ protected $sortMapping; @@ -87,19 +87,19 @@ class lamList { /** list of account specific labels */ protected $labels; - + /** configuration options */ private $configOptions; - + /** tabindex for GUI elements */ protected $tabindex = 1; /** ID for list size config option */ const LIST_SIZE_OPTION_NAME = "L_SIZE"; - + /** prefix for virtual (non-LDAP) attributes */ const VIRTUAL_ATTRIBUTE_PREFIX = 'lam_virtual_'; - + /** * Constructor * @@ -116,7 +116,7 @@ class lamList { $this->configOptions = $this->listGetAllConfigOptions(); $this->listReadOptionsFromCookie(); } - + /** * Reads the list options from the cookie value. */ @@ -222,7 +222,7 @@ class lamList { $foundFilter = $_POST["filter" . strtolower($this->attrArray[$i])]; } if (isset($foundFilter) && ($foundFilter != '')) { - if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.@-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter + if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.:@-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter $this->filters[strtolower($this->attrArray[$i])] = $foundFilter; } else { @@ -232,7 +232,7 @@ class lamList { } } } - + /** * Determines the sort mapping and stores it in $this->sortMapping. * The sort mapping is used to display the right rows when the account table is created. @@ -332,10 +332,10 @@ class lamList { } echo "\n"; } - + /** * Returns the filter as text to be used as URL parameter. - * + * * @return String filter text */ protected function getFilterAsTextForURL() { @@ -401,10 +401,10 @@ class lamList { } echo "\n"; } - + /** * Prints the content of a single attribute filter area. - * + * * @param String $attrName attribute name * @param boolean $clearFilter true if filter value should be cleared */ @@ -421,12 +421,12 @@ class lamList { $filterInput->setOnKeyPress("SubmitForm('apply_filter', event);"); parseHtml(null, $filterInput, array(), false, $this->tabindex, $this->type); } - + /** * Returns if the given attribute can be filtered. * If filtering is not possible then no filter box will be displayed. * By default all attributes can be filtered. - * + * * @param String $attr attribute name * @return boolean filtering possible */ @@ -488,10 +488,10 @@ class lamList { echo "\n"; echo "\n"; } - + /** * Prints the tool image links (e.g. edit and delete) for each account. - * + * * @param array $account LDAP attributes * @param String $id account ID */ @@ -528,7 +528,7 @@ class lamList { parseHtml(null, $group, array(), false, $this->tabindex, $this->type); echo "\n"; } - + /** * Prints the content of a cell in the account list for a given LDAP entry and attribute. * @@ -546,12 +546,12 @@ class lamList { else { echo htmlspecialchars($entry[$attribute], ENT_QUOTES, "UTF-8"); } - } + } } /** * Manages all POST actions (e.g. button pressed) for the account lists. - * + * * @return String HTML fragment to insert into beginning of account list */ protected function listDoPost() { @@ -669,7 +669,7 @@ class lamList { } return ''; } - + /** * Shows the page where the user may select the PDF options. * @@ -689,7 +689,7 @@ class lamList { } // get possible PDF structures $pdf_structures = getPDFStructureDefinitions($this->type); - + $this->listPrintHeader(); echo "