We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad7f3fa commit 7cc9652Copy full SHA for 7cc9652
src/Loader.php
@@ -332,7 +332,11 @@ public function __construct(
332
if (is_array($this->IPAddr)) {
333
$this->IPAddr = array_shift($this->IPAddr);
334
}
335
+ if (is_string($this->IPAddr) && ($Pos = strpos($this->IPAddr, ', ')) !== false) {
336
+ $this->IPAddr = substr($this->IPAddr, 0, $Pos);
337
+ }
338
$this->IPAddr = (string)$this->IPAddr;
339
+ unset($Pos);
340
341
/** Set timezone. */
342
if (!empty($this->Configuration['core']['timezone']) && $this->Configuration['core']['timezone'] !== 'SYSTEM') {
0 commit comments