Skip to content

Commit bca1cda

Browse files
author
Francois Suter
committed
[BUGFIX] Awkward default IP filter
Use "*" for default value of IP filter option instead of empty value. Also add binary safe flag for fopen() call and correct wrong PHPdocs. Change-Id: I6dbf75c86e865714bd64fc7efbe3f8725a9d741f Resolves: #78686 Releases: 3.0 Reviewed-on: https://review.typo3.org/50647 Reviewed-by: Francois Suter <[email protected]> Tested-by: Francois Suter <[email protected]>
1 parent d85d911 commit bca1cda

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2016-11-13 Francois Suter <[email protected]>
22

33
* Verified compatibility with TYPO3 v8 (8.5.-dev), resolves #78626
4+
* Corrected awkward default value for IP filtering, resolves #78686
45

56
2016-11-09 Francois Suter <[email protected]>
67

Classes/Utility/UserFields.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UserFields
3535
* Returns the severity of the entry using TYPO3's icon and labels.
3636
*
3737
* @param array $parameters Information related to the field
38-
* @param UserElement $userElement Reference to calling object
38+
* @param UserElement $formObject Reference to calling object
3939
*
4040
* @return string The HTML for the form field
4141
*/
@@ -73,7 +73,7 @@ public function displaySeverity($parameters, $formObject)
7373
* Returns the extra data as a nice HTML dump.
7474
*
7575
* @param array $PA Information related to the field
76-
* @param UserElement $userElement Reference to calling object
76+
* @param UserElement $formObject Reference to calling object
7777
*
7878
* @return string The HTML for the form field
7979
*/

Classes/Writer/FileWriter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct($logger)
4646
// If the file path is valid, try opening the file
4747
$this->fileHandle = @fopen(
4848
$absoluteFilePath,
49-
'a'
49+
'ab'
5050
);
5151
// Throw an exception if log file could not be opened properly
5252
if (!$this->fileHandle) {

ext_conf_template.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ excludeKeys =
1616
includeKeys =
1717

1818
# cat=general/filtering/c; type=string; label=LLL:EXT:devlog/Resources/Private/Language/Configuration.xlf:ip_filter
19-
ipFilter =
19+
ipFilter = *
2020

2121
# cat=general/display/a; type=integer; label=Autorefresh frequency: Set the number of seconds between each refresh, when using the autorefresh feature
2222
refreshFrequency = 4

0 commit comments

Comments
 (0)