]> Sergey Matveev's repositories - nnn.git/commitdiff
Use HTTPS everywhere (mechanical edit using util from https-everywhere)
authorRobin Schneider <ypid@riseup.net>
Wed, 6 Jan 2021 11:41:49 +0000 (12:41 +0100)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 7 Jan 2021 03:02:59 +0000 (08:32 +0530)
```Shell
~/src/EFForg/https-everywhere/utils/rewriter/rewriter.js .
```

Ref: https://github.com/EFForg/https-everywhere/tree/master/utils/rewriter

Remove suspicious file

misc/haiku/logo.hvif [deleted file]
plugins/gutenread
plugins/imgur
plugins/preview-tabbed
src/nnn.c

diff --git a/misc/haiku/logo.hvif b/misc/haiku/logo.hvif
deleted file mode 100644 (file)
index 3f7dfdc..0000000
Binary files a/misc/haiku/logo.hvif and /dev/null differ
index eb845bf41f4f8c0c7c43d4248af4139cba3597c8..bfc0a42ad86899fd376dc30c13e524839d1a7daf 100755 (executable)
@@ -20,7 +20,7 @@
 
 EBOOK_ID="${EBOOK_ID}"
 DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/gutenbooks/$EBOOK_ID"
-BROWSE_LINK="http://www.gutenberg.org/ebooks/search/?sort_order=downloads"
+BROWSE_LINK="https://www.gutenberg.org/ebooks/search/?sort_order=downloads"
 BROWSER="${BROWSER:-w3m}"
 READER="${READER}"
 
@@ -33,7 +33,7 @@ if [ -n "$EBOOK_ID" ]; then
             curl -L -O "https://www.gutenberg.org/files/$EBOOK_ID/$EBOOK_ID-h.zip"
             unzip "$EBOOK_ID"-h.zip
         else
-            curl -L -o "$EBOOK_ID".epub "http://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages"
+            curl -L -o "$EBOOK_ID".epub "https://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages"
         fi
     fi
 
index 9115c480fd4204cd19b1679b8e7ed9cfada626d9..2da549c62ba72510c78d09200c6eb003b00bd966 100755 (executable)
@@ -521,7 +521,7 @@ if [ -n "${album_title}" ]; then
     echo "Album '${album_title}' successfully created"
     album_id="$(grep -Eo '"id":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)"
     del_id="$(grep -Eo '"deletehash":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)"
-    handle_album_creation_success "http://imgur.com/a/${album_id}" "${del_id}" "${album_title}"
+    handle_album_creation_success "https://imgur.com/a/${album_id}" "${del_id}" "${album_title}"
 
     if [ "${login}" = "false" ]; then
       album_id="${del_id}"
index 98a4be89b1145403d1fe405298cfa1229be50de9..5f37ff57187426a0c0a8ff7e494c07c984188ba5 100755 (executable)
@@ -42,7 +42,7 @@
 #     - `zathura`: PDF viewer
 #     - but we allways fallback to `nuke` plugin
 #
-# [1]: http://tools.suckless.org/tabbed/
+# [1]: https://tools.suckless.org/tabbed/
 # [2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html
 #
 # Shell: bash (job control is weakly specified in POSIX)
index b8058e124121ca49b92415520a1e9e8b34fb6e29..2ba715c5894b2168f15a08f294769132b02a8f3e 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -876,7 +876,7 @@ static rlim_t max_openfds(void)
  * Frees current memory if realloc() fails and returns NULL.
  *
  * As per the docs, the *alloc() family is supposed to be memory aligned:
- * Ubuntu: http://manpages.ubuntu.com/manpages/xenial/man3/malloc.3.html
+ * Ubuntu: https://manpages.ubuntu.com/manpages/xenial/man3/malloc.3.html
  * macOS: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/malloc.3.html
  */
 static void *xrealloc(void *pcur, size_t len)