[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/source/linc linc.py
From: |
Pavel Kharitonov |
Subject: |
www/server/source/linc linc.py |
Date: |
Sat, 17 May 2014 09:29:13 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Pavel Kharitonov <ineiev> 14/05/17 09:29:13
Modified files:
server/source/linc: linc.py
Log message:
Correctly process links like "//www.fsf.org".
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.19&r2=1.20
Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- linc.py 29 Jul 2013 12:48:42 -0000 1.19
+++ linc.py 17 May 2014 09:29:12 -0000 1.20
@@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-
#
# LINC - LINC Is Not Checklink
-# Copyright © 2011-2012 WacÅaw Jacek
-# Copyright © 2013 Free Software Foundation, Inc.
+# Copyright © 2011, 2012 WacÅaw Jacek
+# Copyright © 2013, 2014 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -18,13 +18,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-LINC_VERSION = 'LINC 0.15'
+LINC_VERSION = 'LINC 0.16'
USAGE = \
'''Usage: %prog [options] [BASE_DIRECTORY]
Check links in HTML files from BASE_DIRECTORY.'''
COPYRIGHT= \
-'''Copyright (C) 2011-2012 Waclaw Jacek
-Copyright (C) 2013 Free Software Foundation, Inc.
+'''Copyright 2011, 2012 Waclaw Jacek
+Copyright 2013, 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@@ -279,6 +279,9 @@
link_type = 'unsupported'
elif link.find('http://') == 0:
link_type = 'http'
+ elif link.find('//') == 0:
+ link_type = 'http'
+ link = 'http:' + link
elif link.find('ftp://') == 0:
link_type = 'ftp'
elif link[0] == '/':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- www/server/source/linc linc.py,
Pavel Kharitonov <=