File: link_safe_urls.text

package info (click to toggle)
python-markdown2 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,492 kB
  • sloc: python: 6,201; perl: 1,493; php: 865; makefile: 37
file content (47 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Normal links

[Safe link 1](https://www.example.com)

[Safe link 2](http://www.example.com)

[Safe link 3](ftp://www.example.com)

[Safe link 4](mailto:emailaddress@server.com)

[Safe link 5](tel:0123456789)

[Safe link 6](#anchor)

# Bad protocols

[Unsafe link 1](unknown://www.example.com)

[Unsafe link 2](mailfrom:www.example.com)

# Relative links

[Safe link 1](example)

[Safe link 2](./example)

[Safe link 3](../../example)

[Safe link 4](/example)

[Unsafe link 1](.../www.example.com)

# Edge cases

[Safe link 1](www.example.com/abc:def)

[Safe link 2](www.example.com/abc:/def)

[Safe link 3](https://www.example.com:4200)

[Safe link 4](https://www.example.com:4200/abcdef)

[Unsafe link 1](unknown://www.example.com://abc)

[Unsafe link 2](C:/Windows/System32)

[Unsafe link 3](C:\Windows\System32)