summaryrefslogtreecommitdiff
path: root/src/gmutil.c
AgeCommit message (Collapse)Author
2021-07-16Allow override for certificate expiryJaakko Keränen
The user is able to ignore certificate expiry and continue loading the page regardless. This adds a one hour exception to the expiration date.
2021-07-16Improved TOFU implementationJaakko Keränen
If a server sends a different certificate (checked by matching public key fingerprints), abort the connection at the TLS handshake stage. A new error page is shown explaining the situation. A button is provided for conveniently opening Page Information, where trust can be updated. The file format of "visited.txt" was updated, so it is now called "visited.2.txt". The new format includes server port numbers, and the fingerprints are calculated based on public keys. IssueID #308 IssueID #309 IssueID #310
2021-07-15Fixed whitespace encoding in query stringJaakko Keränen
2021-07-13GmCerts: Make the server port knownJaakko Keränen
2021-06-30Canonical URIsJaakko Keränen
Internally, all URIs should be converted to a canonical form so that they can be compared against each other. The canonical form is an IRI with spaces and reserved characters percent-encoded.
2021-06-14Swiping and sidebar; various tweaksJaakko Keränen
When a page is opened from the sidebar, swiping back will now reopen the sidebar. Another swipe will dismiss the sidebar and navigate back as usual. Attempted to cache theme colors in GmDocument, but there were issues with theme changes.
2021-05-21Added -u,--url-or-search command line optionJaakko Keränen
Opening an URL or making a search query from the command line. IssueID #232
2021-05-21Added identity exportingJaakko Keränen
Exporting an identity will display it in a new tab in PEM encoded format, where it can be saved or copied. IssueID #236
2021-05-07Windows: Fixed use of native path separatorsJaakko Keränen
`GmRequest` should use the correct path separators on Windows in native paths.
2021-05-05Only accept valid characters in URI schemesJaakko Keränen
IssueID #269
2021-05-05Gempub: Split to show index and first chapterJaakko Keränen
When opening a Gempub, split the window and show the index page and the first chapter.
2021-05-02Added a Gempub helperJaakko Keränen
`Gempub` opens and parses a Gempub archive and provides access to the contents in a common way.
2021-04-26URL encoding in paths (equals sign)Jaakko Keränen
An equals sign has no special meaning in the path part of an URL, so encoding it always is unnecessary. Fixes apparent URL decoding issue on gemini://gemif.fedi.farm/ .
2021-04-24Gempub cover page; cleanupJaakko Keränen
Use MIME hooks to generate a Gempub cover page with a preloaded cover image. This required applying MIME filtering to "file://" requests as well. Todo: More cleanup, add a gempub.c.
2021-04-23File URLs support directories and ZIP archivesJaakko Keränen
One is now able to view directory and ZIP archive contents using file URLs. Directory contents are shown as a list of links, enabling previewing supported formats. A link to the parent directory is included at the top of the page. ZIP archives behave like directories, except they also recognize "index.gmi" and "index.gemini" files and display them instead of the regular directory index (when viewing a directory inside a ZIP archive). This enables archiving a Gemini capsule and browsing it as a ZIP archive. Added a preference to disable loading of index pages.
2021-04-18Dealing with a missing host nameJaakko Keränen
2021-04-17Composing an URL with an IPv6 hostJaakko Keränen
The brackets that were removed must be put back if needed.
2021-04-17Parsing an IPv6 URLJaakko Keränen
The brackets are part of the URL notation and should not be considered part of the IPv6 address itself.
2021-03-28Handling of unknown URI schemesJaakko Keränen
IssueID #226
2021-03-25Don't alter contents of bitcoin URIsJaakko Keränen
IssueID #215
2021-03-24Lang: Added new strings for error messagesJaakko Keränen
IssueID #192
2021-03-24Fixed regression in conman.org client torture test 21Jaakko Keränen
Couple of problems: - "data:" links were not flagged as supported - "data:" links are not supposed to further decoded or encoded since they are processed internally in the client IssueID #217
2021-03-14Adjusted URL detection for search queriesJaakko Keränen
Dashes may appear in domain names.
2021-03-14Punycode domains when setting trustJaakko Keränen
2021-02-28GmUtil: File paths must be absolute for URLsJaakko Keränen
2021-02-24Bookmarks: Looking up site iconsJaakko Keränen
Bookmark icons apply to site roots instead of domains. A root includes the user directory if one is found in the URL.
2021-02-23Fixed potential crash in URL handlingJaakko Keränen
2021-02-23"Go to Root" respects user names in URLJaakko Keränen
The behavior of navigating to root should match what is displayed in the top banner.
2021-02-16Search engine queries via the navbarJaakko Keränen
Any text that doesn't look like a URL is passed onto the configured search URL as a query string. IssueID #157
2021-02-10Fixed URL path decoding issueJaakko Keränen
One should not decode characters that are reserved for the URL syntax.
2021-02-10CleanupJaakko Keränen
2021-02-02Stripping the URL fragmentJaakko Keränen
Lagrange will retain URL fragments when parsing gemtext, but will strip them when making requests or when a DocumentWidget's URL is set. This allows opening URLs with fragments in an external browser. IssueID #128
2021-01-18Fixed opening heading feed entries in a tabJaakko Keränen
The heading goto fragment wasn't being stripped appropriately from the URLs.
2021-01-12Fixed: Percent-encode spaces when copyingJaakko Keränen
IssueID #112
2021-01-12Feeds: Strip default Gemini ports from URLsJaakko Keränen
2021-01-11Omit default Gemini port from URLsJaakko Keränen
Including the default port number is redundant. Normalize to a port-less URL.
2020-12-28SidebarWidget: Opening feed entries in new tabJaakko Keränen
2020-12-12Added option to show URL paths as encoded or decodedJaakko Keränen
IssueID #73
2020-12-12IDN applies to all network schemesJaakko Keränen
But not "file" or "about".
2020-12-11GmRequest: Punycode for domain namesJaakko Keränen
To support Internationalized Domain Names, we need to encode domain names using Punycode. IssueID #73
2020-12-10Feeds: Show entries in lookup resultsJaakko Keränen
2020-12-04Windows: Dealing with "file:///" URIsJaakko Keränen
2020-12-01DocumentWidget: Error page of unknown status codeJaakko Keränen
2020-11-19CleanupJaakko Keränen
Ran clang-format.
2020-11-18Add username and ipv6 literals to authority regexWaweic
2020-11-18Handling an URL that begins with a tildeJaakko Keränen
IssueID #40
2020-11-18Handling an URL that contains nothing by a queryJaakko Keränen
IssueID #40
2020-11-18URL parsing improvementsJaakko Keränen
Now it uses a single regular expression to parse all (non "file:") URLs. IssueID #40
2020-11-07Treat Gopher as an unsupported protocolJaakko Keränen
2020-11-06Automatic redirects to the same schemeJaakko Keränen
IssueID #16