# fix\(desktop\): bracket Safari IPv6 hosts and skip directory candidates · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/658ff9e76ec39459e3badfd0058bde4447094147)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 658ff9e76ec39459e3badfd0058bde4447094147

Requested commit: 658ff9e76ec39459e3badfd0058bde4447094147

Commit: 658ff9e76ec39459e3badfd0058bde4447094147

Tree: 1000f408b13dba69d9e9d5b493f8d88c8fe87577

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): bracket Safari IPv6 hosts and skip directory candidates

Two review findings. Safari's parser interpolated a bare IPv6 host into the
cookie URL (`http://::1/`), which Electron rejects; hosts with a colon are now
bracketed, matching the Chromium reader's cookieScope. And the cookie-database
candidate probes accepted any stat-able entry, so a directory squatting on
`Network/Cookies` would be picked, fail the SQLite open, and shadow a valid
legacy `Cookies` file behind it; every candidate probe now requires a regular
file, in the listing, the counts, and the importer alike.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [0945140b4b2631ad98552deca074acda837ea479](https://git.cafe/pingdotgg/t3code/commit/0945140b4b2631ad98552deca074acda837ea479?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/658ff9e76ec39459e3badfd0058bde4447094147?format=markdown)
