Ignore steam:// URIs.

This commit is contained in:
Bastian Kleineidam 2012-01-10 19:37:19 +01:00
parent 19f0bbe7ce
commit a0581cc2a1
9 changed files with 764 additions and 372 deletions

View file

@ -1,5 +1,9 @@
7.5 "" (released xx.xx.2012)
Changes:
- checking: Add steam:// URIs to the list of ignored URIs.
Closes: SF bug #3471570
Features:
- gui: add Ctrl-L shortcut to highlight the URL input.

1022
doc/de.po

File diff suppressed because it is too large Load diff

View file

@ -435,6 +435,7 @@ Für FTP\-Links wird Folgendes geprüft:
\- \*(lqservice:\*(lq (service location)
\- \*(lqshttp:\*(lq (secure HTTP)
\- \*(lqsip:\*(lq (session initiation protocol)
\- \*(lqsteam:\*(lq (Steam browser protocol)
\- \*(lqtel:\*(lq (telephone)
\- \*(lqtip:\*(lq (Transaction Internet Protocol)
\- \*(lqtn3270:\*(lq (Interactive 3270 emulation sessions)

View file

@ -434,6 +434,7 @@ FTP links (\fBftp:\fP)
- ``service:`` (service location)
- ``shttp:`` (secure HTTP)
- ``sip:`` (session initiation protocol)
- ``steam:`` (Steam browser protocol)
- ``tel:`` (telephone)
- ``tip:`` (Transaction Internet Protocol)
- ``tn3270:`` (Interactive 3270 emulation sessions)

View file

@ -129,6 +129,7 @@ prominent of them are JavaScript links.</p>
<li><code>service:</code> (service location)</li>
<li><code>shttp:</code> (secure HTTP)</li>
<li><code>sip:</code> (session initiation protocol)</li>
<li><code>steam:</code> (Steam browser protocol)</li>
<li><code>tel:</code> (telephone)</li>
<li><code>tip:</code> (Transaction Internet Protocol)</li>
<li><code>tn3270:</code> (Interactive 3270 emulation sessions)</li>

View file

@ -105,6 +105,7 @@ checking. All connection check types are described below.
- ``service:`` (service location)
- ``shttp:`` (secure HTTP)
- ``sip:`` (session initiation protocol)
- ``steam:`` (Steam browser protocol)
- ``tel:`` (telephone)
- ``tip:`` (Transaction Internet Protocol)
- ``tn3270:`` (Interactive 3270 emulation sessions)

View file

@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2011-12-14 22:36+0100\n"
"POT-Creation-Date: 2012-01-10 19:34+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1122,7 +1122,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:444
#: en/linkchecker.1:445
#, no-wrap
msgid ""
" - ``acap:`` (application configuration access protocol)\n"
@ -1152,6 +1152,7 @@ msgid ""
" - ``service:`` (service location)\n"
" - ``shttp:`` (secure HTTP)\n"
" - ``sip:`` (session initiation protocol)\n"
" - ``steam:`` (Steam browser protocol)\n"
" - ``tel:`` (telephone)\n"
" - ``tip:`` (Transaction Internet Protocol)\n"
" - ``tn3270:`` (Interactive 3270 emulation sessions)\n"
@ -1162,25 +1163,25 @@ msgid ""
msgstr ""
#. type: SH
#: en/linkchecker.1:446
#: en/linkchecker.1:447
#, no-wrap
msgid "RECURSION"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:449
#: en/linkchecker.1:450
msgid ""
"Before descending recursively into a URL, it has to fulfill several "
"conditions. They are checked in this order:"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:451
#: en/linkchecker.1:452
msgid "1. A URL must be valid."
msgstr ""
#. type: Plain text
#: en/linkchecker.1:457
#: en/linkchecker.1:458
#, no-wrap
msgid ""
"2. A URL must be parseable. This currently includes HTML files,\n"
@ -1191,7 +1192,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:460
#: en/linkchecker.1:461
#, no-wrap
msgid ""
"3. The URL content must be retrievable. This is usually the case\n"
@ -1199,7 +1200,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:463
#: en/linkchecker.1:464
#, no-wrap
msgid ""
"4. The maximum recursion level must not be exceeded. It is configured\n"
@ -1207,7 +1208,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:466
#: en/linkchecker.1:467
#, no-wrap
msgid ""
"5. It must not match the ignored URL list. This is controlled with\n"
@ -1215,7 +1216,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:470
#: en/linkchecker.1:471
#, no-wrap
msgid ""
"6. The Robots Exclusion Protocol must allow links in the URL to be\n"
@ -1224,20 +1225,20 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:473
#: en/linkchecker.1:474
msgid ""
"Note that the directory recursion reads all files in that directory, not "
"just a subset like ``index.htm*``."
msgstr ""
#. type: SH
#: en/linkchecker.1:474
#: en/linkchecker.1:475
#, no-wrap
msgid "NOTES"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:479
#: en/linkchecker.1:480
msgid ""
"URLs on the commandline starting with B<ftp.> are treated like "
"B<ftp://ftp.>, URLs starting with B<www.> are treated like B<http://www.>. "
@ -1245,7 +1246,7 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:484
#: en/linkchecker.1:485
msgid ""
"If you have your system configured to automatically establish a connection "
"to the internet (e.g. with diald), it will connect when checking links not "
@ -1254,112 +1255,112 @@ msgid ""
msgstr ""
#. type: Plain text
#: en/linkchecker.1:486
#: en/linkchecker.1:487
msgid "Javascript links are currently ignored."
msgstr ""
#. type: Plain text
#: en/linkchecker.1:489
#: en/linkchecker.1:490
msgid ""
"If your platform does not support threading, LinkChecker disables it "
"automatically."
msgstr ""
#. type: Plain text
#: en/linkchecker.1:491
#: en/linkchecker.1:492
msgid "You can supply multiple user/password pairs in a configuration file."
msgstr ""
#. type: Plain text
#: en/linkchecker.1:494
#: en/linkchecker.1:495
msgid ""
"When checking B<news:> links the given NNTP host doesn't need to be the same "
"as the host of the user browsing your pages."
msgstr ""
#. type: SH
#: en/linkchecker.1:495
#: en/linkchecker.1:496
#, no-wrap
msgid "ENVIRONMENT"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:497
#: en/linkchecker.1:498
msgid "B<NNTP_SERVER> - specifies default NNTP server"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:499
#: en/linkchecker.1:500
msgid "B<http_proxy> - specifies default HTTP proxy server"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:501
#: en/linkchecker.1:502
msgid "B<ftp_proxy> - specifies default FTP proxy server"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:503
#: en/linkchecker.1:504
msgid ""
"B<no_proxy> - comma-separated list of domains to not contact over a proxy "
"server"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:505
#: en/linkchecker.1:506
msgid "B<LC_MESSAGES>, B<LANG>, B<LANGUAGE> - specify output language"
msgstr ""
#. type: SH
#: en/linkchecker.1:506
#: en/linkchecker.1:507
#, no-wrap
msgid "RETURN VALUE"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:508
#: en/linkchecker.1:509
msgid "The return value is 2 when"
msgstr ""
#. type: IP
#: en/linkchecker.1:508 en/linkchecker.1:512 en/linkchecker.1:514
#: en/linkchecker.1:509 en/linkchecker.1:513 en/linkchecker.1:515
#, no-wrap
msgid "\\(bu"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:510
#: en/linkchecker.1:511
msgid "a program error occurred."
msgstr ""
#. type: Plain text
#: en/linkchecker.1:512
#: en/linkchecker.1:513
msgid "The return value is 1 when"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:514
#: en/linkchecker.1:515
msgid "invalid links were found or"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:516
#: en/linkchecker.1:517
msgid "link warnings were found and warnings are enabled"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:518
#: en/linkchecker.1:519
msgid "Else the return value is zero."
msgstr ""
#. type: SH
#: en/linkchecker.1:519
#: en/linkchecker.1:520
#, no-wrap
msgid "LIMITATIONS"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:523
#: en/linkchecker.1:524
msgid ""
"LinkChecker consumes memory for each queued URL to check. With thousands of "
"queued URLs the amount of consumed memory can become quite large. This might "
@ -1367,70 +1368,70 @@ msgid ""
msgstr ""
#. type: SH
#: en/linkchecker.1:524
#: en/linkchecker.1:525
#, no-wrap
msgid "FILES"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:526
#: en/linkchecker.1:527
msgid "B<~/.linkchecker/linkcheckerrc> - default configuration file"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:528
#: en/linkchecker.1:529
msgid "B<~/.linkchecker/blacklist> - default blacklist logger output filename"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:530
#: en/linkchecker.1:531
msgid "B<linkchecker-out.>I<TYPE> - default logger file output name"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:532
#: en/linkchecker.1:533
msgid ""
"B<http://docs.python.org/library/codecs.html#standard-encodings> - valid "
"output encodings"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:534
#: en/linkchecker.1:535
msgid ""
"B<http://docs.python.org/howto/regex.html> - regular expression "
"documentation"
msgstr ""
#. type: SH
#: en/linkchecker.1:535 en/linkcheckerrc.5:514 en/linkchecker-gui.1:11
#: en/linkchecker.1:536 en/linkcheckerrc.5:514 en/linkchecker-gui.1:11
#, no-wrap
msgid "SEE ALSO"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:537
#: en/linkchecker.1:538
msgid "B<linkcheckerrc>(5)"
msgstr ""
#. type: SH
#: en/linkchecker.1:538 en/linkcheckerrc.5:517 en/linkchecker-gui.1:14
#: en/linkchecker.1:539 en/linkcheckerrc.5:517 en/linkchecker-gui.1:14
#, no-wrap
msgid "AUTHOR"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:540 en/linkcheckerrc.5:519 en/linkchecker-gui.1:16
#: en/linkchecker.1:541 en/linkcheckerrc.5:519 en/linkchecker-gui.1:16
msgid "Bastian Kleineidam E<lt>calvin@users.sourceforge.netE<gt>"
msgstr ""
#. type: SH
#: en/linkchecker.1:541 en/linkcheckerrc.5:520 en/linkchecker-gui.1:17
#: en/linkchecker.1:542 en/linkcheckerrc.5:520 en/linkchecker-gui.1:17
#, no-wrap
msgid "COPYRIGHT"
msgstr ""
#. type: Plain text
#: en/linkchecker.1:542 en/linkcheckerrc.5:521
#: en/linkchecker.1:543 en/linkcheckerrc.5:521
msgid "Copyright \\(co 2000-2012 Bastian Kleineidam"
msgstr ""

View file

@ -46,6 +46,7 @@ acap # application configuration access protocol
|service # service location
|shttp # secure HTTP
|sip # session initiation protocol
|steam # Steam browser protocol
|tel # telephone
|tip # Transaction Internet Protocol
|tn3270 # Interactive 3270 emulation sessions

View file

@ -56,3 +56,15 @@ class TestUnknown (LinkCheckTest):
u"valid",
]
self.direct(url, resultlines)
def test_steam (self):
url = u"steam://connect/example.org"
nurl = self.norm(url)
resultlines = [
u"url %s" % url,
u"cache key %s" % nurl,
u"real url %s" % nurl,
u"warning Steam URL ignored.",
u"valid",
]
self.direct(url, resultlines)