File: 0009-Add-https-to-is_url.patch

package info (click to toggle)
moc 1%3A2.6.0~svn-r3005-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,904 kB
  • sloc: ansic: 31,748; sh: 929; cpp: 487; makefile: 240
file content (25 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 868951edfb1cb719fcc662b93d6b19e658f6dfde Mon Sep 17 00:00:00 2001
From: Elimar Riesebieter <riesebie@lxtec.de>
Date: Sun, 30 Oct 2022 10:01:19 +0100
Subject: [PATCH] Add https to is_url

Signed-off-by: Elimar Riesebieter <riesebie@lxtec.de>
---
 files.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/files.c b/files.c
index 16aa4b6..ed59217 100644
--- a/files.c
+++ b/files.c
@@ -85,6 +85,7 @@ void files_cleanup ()
 inline int is_url (const char *str)
 {
 	return !strncasecmp (str, "http://", sizeof ("http://") - 1)
+		|| !strncasecmp (str, "https://", sizeof ("https://") - 1)
 		|| !strncasecmp (str, "ftp://", sizeof ("ftp://") - 1);
 }
 
-- 
2.37.2