commit 20811c666c4af2f0a75e3caa5b21722fbeb8d918 Author: Joaquim Rocha Date: Mon Mar 14 22:28:48 2022 +0000 Update for release 0.8.4 NEWS | 8 ++++++++ configure.ac | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) commit 7d47eb79c7860f3abc55fc1aa19fd9bde96ab256 Author: RenWal <65450-RenWal@users.noreply.gitlab.gnome.org> Date: Mon Feb 21 12:34:30 2022 +0100 Do not invoke commands through shell. Fixes #82 Executing shell commands through mechanisms such as os.system() or subprocess.run(shell=True) with user-controllable input is prone to arbitrary shell command injection. In this particular case, a malicious actor controlling any input name, either in PDF or image form, can force ocrfeeder to execute shell commands embedded in the file name. While a workaround for #20, mentioning problems opening files with special characters, was introduced in 5286120c, this was not applied to every subprocess invocation. Furthermore, it is good practice to make use of the parameterization of arguments available in the subprocess package instead of relying on character escaping alone, avoiding shell invocation completely. This minimizes the attack surface. src/ocrfeeder/studio/widgetPresenter.py | 28 +++++----- src/ocrfeeder/util/lib.py | 93 +++++++++++++++------------------ 2 files changed, 56 insertions(+), 65 deletions(-) commit 51952ab816ccae006962cfbaaf194736b2a37d89 Author: Sergej A Date: Sun Feb 13 16:19:28 2022 +0000 Update Russian translation po/ru.po | 964 ++++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 643 insertions(+), 321 deletions(-) commit f2a61c3bf42943b7f25b7d58f02bd0b7d520538b Author: Sergej A Date: Mon Feb 7 18:36:32 2022 +0000 Update Russian translation help/ru/ru.po | 1721 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 974 insertions(+), 747 deletions(-) commit b4313f00703cde31654828890d0c208c7761b0ba Author: Andika Triwidada Date: Mon Jun 7 09:18:14 2021 +0000 Update Indonesian translation po/id.po | 96 ++++++++++++++++++++-------------------------------------------- 1 file changed, 29 insertions(+), 67 deletions(-) commit 5a2d05ece51e61db3a080ed13c5e96e40b58428d Author: Ask Hjorth Larsen Date: Tue May 11 19:34:07 2021 +0200 Updated Danish translation po/da.po | 738 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 398 insertions(+), 340 deletions(-) commit 5fc02ddf407786c6d7598241f4a2796e8716e97d Author: Jordi Mas Date: Tue Apr 13 14:48:15 2021 +0200 Update Catalan translation po/ca.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 48d29690d17b1b47f508f5eca1131e6551677bb0 Author: Muhammet Kara Date: Sun Mar 21 11:06:00 2021 +0000 Update Turkish translation po/tr.po | 780 +++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 509 insertions(+), 271 deletions(-) commit fbae1c8c21aae831e953fb85a13f24af66adf48c Author: Balázs Úr Date: Wed Mar 17 08:40:56 2021 +0000 Update Hungarian translation po/hu.po | 894 +++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 586 insertions(+), 308 deletions(-) commit 41225fb6dbcd919c8e4a5b42bf967e1169035010 Author: Мирослав Николић Date: Tue Feb 23 07:10:09 2021 +0000 Update Serbian translation po/sr.po | 928 ++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 590 insertions(+), 338 deletions(-) commit 96ed1261db0a1f096801bae2b797f33232d48928 Merge: 54e05ac c0c4608 Author: Joaquim Rocha Date: Mon Feb 1 10:36:43 2021 +0000 Merge branch 'master' into 'master' Remove the usage of deprecated 'xml.etree.ElementTree.Element.getchildren' See merge request GNOME/ocrfeeder!10 commit 54e05acb397ba48232e302b22d05a6df643c718b Author: Jordi Mas i Hernandez Date: Mon Jan 18 19:36:13 2021 +0000 Update Catalan translation po/ca.po | 941 ++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 604 insertions(+), 337 deletions(-) commit 83326284ea1cf2f74ead1b22c428b8081e98656c Author: Anders Jonsson Date: Fri Dec 25 11:11:05 2020 +0000 Update Swedish translation po/sv.po | 86 ++++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 54 insertions(+), 32 deletions(-) commit c0c460893961d5589f300645b32b5584a6c3f463 Author: Roman Franchuk Date: Mon Nov 30 23:16:15 2020 +0100 Remove the usage of deprecated 'xml.etree.ElementTree.Element.getchildren' It's not available anymore since Python 3.9. src/ocrfeeder/feeder/ocrEngines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 583e29e070302a38790b6ee320079d788e84bddf Author: Joaquim Rocha Date: Tue Nov 24 22:16:57 2020 +0000 ocrfeeder.doap: Update author's email ocrfeeder.doap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 273204b19746d7f602550b8e664121c357a093fd Merge: 778d60a 8ee0c61 Author: Joaquim Rocha Date: Tue Nov 24 22:14:59 2020 +0000 Merge branch 'arnaudb/avatar' into 'master' Set application avatar in Gitlab. See merge request GNOME/ocrfeeder!9 commit 778d60ad910b2ee55dc42fe59cea2f267558ddda Author: Marek Černocký Date: Sat Nov 14 12:44:45 2020 +0100 Updated Czech translation po/cs.po | 893 ++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 570 insertions(+), 323 deletions(-) commit d76f204a79c1f3e65e33dc45b22d2631b7d03511 Author: Andika Triwidada Date: Wed Sep 2 04:38:48 2020 +0000 Add Indonesian translation po/LINGUAS | 1 + po/id.po | 1599 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1600 insertions(+) commit 8ee0c61ebfdfe183394b9490bdcf5338e0c171b7 Author: Arnaud Bonatti Date: Mon Jul 27 18:12:30 2020 +0200 Set application avatar in Gitlab. logo.png | Bin 0 -> 31024 bytes 1 file changed, 0 insertions(+), 0 deletions(-) commit 42608e6134eba4286c541d120ec9e814f6c2952e Author: Florentina Mușat Date: Sun Jul 19 12:33:35 2020 +0000 Update Romanian translation po/ro.po | 1168 ++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 840 insertions(+), 328 deletions(-) commit 380970f99cb033639849a81d6cdd652d3d2efd8a Author: Andre Klapper Date: Sun May 24 19:47:52 2020 +0200 README: Replace broken git clone URL with GNOME Gitlab URL README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bb5c47a5323411fd9d7d5f36307f3640ca441506 Author: Joaquim Rocha Date: Sat Apr 18 22:27:27 2020 +0200 util: Change how ISO_CODES_PATH is set The ISO_CODES_PATH was hardcoded, and this means that the path may not be the correct one in some systems. Therefore, these changes allow to set an ISO_CODES_DIR as an environment variable or, in case it is not set, it looks for the "xml/iso-codes" path within the system's data dirs. src/ocrfeeder/util/constants.py.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit a08c6264af46f4aed873b02816f27c25ea263382 Author: Joaquim Rocha Date: Sat Apr 18 22:25:32 2020 +0200 util: Use os.path.join to join dirs in the getLanguages function It was simply concatenating the paths, but we will soon be able to configure the ISO_CODES_PATH, so using os.path.join is safer. src/ocrfeeder/util/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d15baf300e0b28977f6ca86d52d0985cf553c2cf Author: Anders Jonsson Date: Wed Apr 22 13:01:48 2020 +0000 Update Swedish translation po/sv.po | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 29e235d51932fc115ca669bdfbbf86164c2bb972 Author: Anders Jonsson Date: Wed Apr 22 13:01:07 2020 +0000 Update Swedish translation po/sv.po | 841 ++++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 540 insertions(+), 301 deletions(-) commit 2e76da13a6bfa155c58ef9af30557ae47118f5b6 Author: Yuri Chornoivan Date: Sun Apr 12 09:08:09 2020 +0000 Update Ukrainian translation po/uk.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 17d31afe115ef61608fed06e3873032ba2adb617 Author: Yuri Chornoivan Date: Sun Apr 12 09:06:47 2020 +0000 Update Ukrainian translation help/uk/uk.po | 1529 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 1122 insertions(+), 407 deletions(-) commit 38c995def55265e178dc1e7f09b6d057af3ff97d Author: scx Date: Sun Mar 8 23:41:52 2020 +0100 Remove a semi-duplicated line from PDF import code src/ocrfeeder/util/lib.py | 1 - 1 file changed, 1 deletion(-) commit 20d9b58ea139834857a24dedf1b5497e3e8c54a0 Author: scx Date: Sun Mar 8 23:26:34 2020 +0100 Refactor runGhostscript() Move ghostscript's options into function parameters src/ocrfeeder/util/lib.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 403abaa61d20d7afa4682e1c659fd1c77becd4e9 Author: scx Date: Sun Mar 8 23:09:49 2020 +0100 Handle exceptions when importing PDF Handle the situation when an error occurs in convertPdfToImages(). convertPdfToImages() may return None when an error occurs, but getImagesFromFolder() cannot handle it. This patch fixes it. src/ocrfeeder/util/lib.py | 2 ++ 1 file changed, 2 insertions(+) commit ab2c5c9747bb3f3328e08532087c688a8ab8de8f Author: Yuri Chornoivan Date: Mon Mar 16 18:16:07 2020 +0000 Update Ukrainian translation po/uk.po | 1111 ++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 758 insertions(+), 353 deletions(-) commit 2a31544c0aa7dd2969ba8f2698d9ac6bf6d5e421 Author: Ask Hjorth Larsen Date: Mon Mar 16 04:06:18 2020 +0100 Updated Danish translation po/da.po | 811 ++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 489 insertions(+), 322 deletions(-) commit ac8e5aec43acc435fead688134d0da9f644d2b00 Author: Jordi Mas Date: Tue Mar 10 20:43:35 2020 +0100 Update Catalan translation po/ca.po | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit fbfe9473ad874cbc168f2f2a9ab6dff7f77735e0 Author: Rafael Fontenelle Date: Tue Mar 10 05:59:06 2020 +0000 Update Brazilian Portuguese translation po/pt_BR.po | 118 +++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 69 insertions(+), 49 deletions(-) commit 3ba08ca71cb61a054eb00796bc738bf0269f72f9 Author: Daniel Mustieles Date: Mon Mar 9 15:53:04 2020 +0100 Updated Spanish translation po/es.po | 118 +++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 69 insertions(+), 49 deletions(-)