Go to file
Damien Elmes af620186ff Fix images with non-Latin text and commas failing to display
Flask's .send_file() method sends a content-disposition header based
on the filename. If the filename includes non-Latin text, it adds an
rfc5987 unicode filename, but does not percent-escape the commas.
This causes Chromium to fail to load the image with the following
error:

net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

 curl -v http://127.0.0.1:40000/Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png
*   Trying 127.0.0.1:40000...
* Connected to 127.0.0.1 (127.0.0.1) port 40000 (#0)
> GET /Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png HTTP/1.1
> Host: 127.0.0.1:40000
> User-Agent: curl/7.86.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Cache-Control: public, max-age=3600
< Content-Disposition: inline; filename="Captura de ecra 2023-02-26, as 18.33.03.png"; filename*=UTF-8''Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png

Fixed by supplying a dummy filename.
2023-02-28 14:48:54 +10:00
.buildkite Whitelist dependabot 2023-01-07 09:53:29 +10:00
.cargo Fix clean build failure due to protoc change 2023-01-26 09:33:39 +10:00
.config Fix accidental inclusion of openssl dependency in Linux builds 2023-01-19 00:44:22 +10:00
.github/ISSUE_TEMPLATE Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.vscode.dist Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build Ensure backend gets rebuilt after git changes 2023-02-22 15:58:39 +10:00
cargo Use Rust nightly for formatting (#2348) 2023-01-25 23:35:53 +10:00
docs Use a ninja variable for node binary (#2346) 2023-01-25 21:05:11 +10:00
ftl Add a button in the preferences to reset window sizes (#2405) 2023-02-28 12:23:34 +10:00
proto Add option to tag notes with missing media (#2379) 2023-02-20 18:48:09 +10:00
pylib Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
python Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
qt Fix images with non-Latin text and commas failing to display 2023-02-28 14:48:54 +10:00
rslib Add option to tag notes with missing media (#2379) 2023-02-20 18:48:09 +10:00
sass Swap impressed shadow for border effect on button hover (#2392) 2023-02-27 15:43:44 +10:00
tools Fix accidental inclusion of openssl dependency in Linux builds 2023-01-19 00:44:22 +10:00
ts Fix open editors getting carried over to different notetypes (#2393) 2023-02-27 16:49:48 +10:00
.deny.toml Update Rust deps (#2332) 2023-01-18 22:24:29 +10:00
.dprint.json Update Chrono Crate (#2242) 2022-12-07 17:00:14 +10:00
.eslintrc.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
.gitmodules Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.isort.cfg Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.mypy.ini Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.prettierignore Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
.prettierrc Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
.pylintrc Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
.rustfmt-empty.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.rustfmt.toml Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
.version Bump version 2023-02-22 16:16:28 +10:00
Cargo.lock Implement TTS using windows crate (#2371) 2023-02-17 12:26:07 +10:00
Cargo.toml Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
CONTRIBUTORS Set deck to current deck when clicked on table row (#2383) 2023-02-28 12:09:40 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
ninja Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
package.json Update protobufjs to remove transitive dependency on taffydb 2023-02-02 17:43:25 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.md fix build badge 2021-06-24 09:21:56 +10:00
run Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
run.bat Allow using the bundled mpv for testing on Windows 2023-02-16 17:41:25 +10:00
rust-toolchain.toml Update Rust deps (#2332) 2023-01-18 22:24:29 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
yarn.lock Protobufjs fixed the relative path issue 2023-02-03 09:31:42 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.