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 d2321f3 commit 0f85bc1Copy full SHA for 0f85bc1
NetscapeBookmarkParser.php
@@ -196,9 +196,9 @@ public function parseString(string $bookmarkString): array
196
$this->logger->debug('[#' . $line_no . '] Date: ' . $this->items[$i]['time']);
197
198
if (preg_match('/(public|published|pub)="(.*?)"/i', $line, $m9)) {
199
- $this->items[$i]['pub'] = $this->parseBoolean($m9[2], false) ? 1 : 0;
+ $this->items[$i]['pub'] = $this->parseBoolean($m9[2]) ? 1 : 0;
200
} elseif (preg_match('/(private|shared)="(.*?)"/i', $line, $m10)) {
201
- $this->items[$i]['pub'] = $this->parseBoolean($m10[2], true) ? 0 : 1;
+ $this->items[$i]['pub'] = $this->parseBoolean($m10[2]) ? 0 : 1;
202
} else {
203
$this->items[$i]['pub'] = $this->defaultPub;
204
}
0 commit comments