Hidden Z
001ee4adc7
web/templates/jump-unknown.html: new template for jumper
...
It used to display error about unknown hostname access try.
14 years ago
Hidden Z
c2b621bc69
web/templates/jump-error.html: new template for displaying jump errors
14 years ago
Hidden Z
e88fd224dd
web/other/views.py: remove useless import
14 years ago
Hidden Z
7b5af7124a
web/jump/views.py: render jump.html template when redirecting
...
Following "Jump service implementation hints" by zzz:
http://zzz.i2p/topics/740
14 years ago
Hidden Z
cff4a4cd2f
web/templates/jump.html: a new template for jump-redirection page
14 years ago
Hidden Z
2b265cf82e
web/templates/base.html: add block for <head>
14 years ago
Hidden Z
e0b9ad980c
web/jump/views.py: preserve GET variables when redirecting
14 years ago
Hidden Z
19023be247
web/templates/local/policy.html: local policy template
14 years ago
Hidden Z
db4f4acafd
web/templates/postkey.html: include local-policy template
14 years ago
Hidden Z
757e98197b
web/templates/index.html: moar default content
14 years ago
Hidden Z
9fe393fce1
web/postkey/models.py: change type of "description" field
...
Now it limited to 4 KB.
14 years ago
Hidden Z
16b875177f
py-i2phosts-builder: bugfix: add newline after each record
...
Since 2858ba6084
base64 hashes appearing
in DB without newlines, so fix builder behavior.
14 years ago
Hidden Z
47ca562e32
web/templates/index.html: template for site-index
14 years ago
Hidden Z
a2901385d9
web/urls.py: add urlpattern for site-index
14 years ago
Hidden Z
d46a35bb89
Add web/other/views.py: views not related to any app will be there
...
Now it has site-index view
14 years ago
Hidden Z
750c01e209
Add template for 404 error
14 years ago
Hidden Z
e44be42738
web/postkey/views.py: pass "title" to renderer
14 years ago
Hidden Z
b37cb354c8
web/templates/base.html: change title
14 years ago
Hidden Z
98a58068db
web/templates/base.html: add footer
14 years ago
Hidden Z
d6f9f2ed99
web/jump/urls.py: modify regexp for jumper
...
Now user can juery /jump/foo.i2p/anything and it will not produce
"unknown hostname" error, instead user will be redirected to
http://foo.i2p?i2paddresshelper=key
14 years ago
Hidden Z
3230f07160
web/jump/views.py: fix redirects
...
Accessing invalid or unknown hostnames always caused a redirect loop.
14 years ago
Hidden Z
700391d6e8
validation.py: check for pasting i2p router hash
14 years ago
Hidden Z
a287860619
validation.py: fail if hash contains .i2p= (full foo.i2p=key)
14 years ago
Hidden Z
ac349547f5
validation.py: check for passing b32 address instead of base64 hash
14 years ago
Hidden Z
0cd7556774
validation.py: strip leading and trailing whitespaces from hash before processing
14 years ago
Hidden Z
584d113a06
py-i2phosts-injector: add extra newline for error message
...
This improves output readability significantly.
14 years ago
Hidden Z
5803016ec3
validation.py: update docstring for validate_hostname()
14 years ago
Hidden Z
b5c5a4051c
validation.py: check for http:/ in hostname
...
This is a common error.
14 years ago
Hidden Z
5da0cc4b59
validation.py: check if only ".i2p" supplied as hostname
...
This is a common error.
14 years ago
Hidden Z
9ea9db109a
validation.py: fix typo in message
14 years ago
Hidden Z
2ab7b2de5f
validation.py: Allow only 4ld domains and below
14 years ago
Hidden Z
0c45032178
validation.py: enhance IDN-check
...
Previously olny IDN hostnames which starts with xn-- was allowed, now
subdomains like subdomains.xn--foobar.i2p are also allowed.
14 years ago
Hidden Z
ac3df58a3f
validation.py: hostname must not start with '.' or '-'
...
I just forgot to add this rule earlier.
14 years ago
Hidden Z
76e4ee94ce
validation.py: add hostname lenght check
...
That's not really needed, just added for avoiding
django.db.utils.DatabaseError exceptions when trying to add too long
hostname with py-i2phosts-injector
14 years ago
Hidden Z
01e01b98fa
validation.py: bugfix: look for '..' in a whole hostname, not in namepart only
14 years ago
Hidden Z
573efddf8b
validation.py: strip leading and trailing whitespaces from hostname
14 years ago
Hidden Z
6a50774e5f
web/lib/validation.py: add comment
14 years ago
Hidden Z
bb2582c62c
web/lib/validation.py: add base64-validity check
...
Base 64 hash shouldn't require more than 2 pad chars to be divided to 4
without leftover.
14 years ago
Hidden Z
2b535dbf2b
web/lib/validation.py: new b64 length check
...
b64 hash shouldn't be longer than 616 bytes. We already have length
limit in database model, but this way we can provide our custom error
message.
14 years ago
Hidden Z
bc3118ab44
web/lib/validation.py: call len() for "data" only once
...
Sort of optimisation.
14 years ago
Hidden Z
28a04f9240
py-i2phosts-injector: add -q/--quiet option
...
With this option program should print only errors
14 years ago
Hidden Z
4bd9b7883f
py-i2phosts-fetcher: use os.path.mtime() for getting mtime
...
This is more efficient way than os.stat because it returns just mtime,
not full stat() info.
14 years ago
Hidden Z
fafa992507
py-i2phosts-checker: simple availability checker for i2p
...
It uses b32->b64 lookup test through SAM interface for determining hosts
availability. For communicating with SAM it uses python i2p library from
SAM contrib (i2p-0.8/apps/sam/python/src/i2p).
14 years ago
Hidden Z
1054426a91
py-i2phosts-fetcher: simple hosts.txt fetcher
...
It fetches files from remote hosts using urllib2 and local eeproxy and
runs py-i2phosts-injector for each downloaded file.
14 years ago
Hidden Z
af828254aa
Rename builder and injector
...
renamed: builder -> py-i2phosts-builder
renamed: injector -> py-i2phosts-injector
14 years ago
Hidden Z
d0f157450b
injector: add -s/--supress option
...
With this option messages about already existed hostnames will be
supressed.
14 years ago
Hidden Z
9b88d61af5
injector: add command-line option for description
14 years ago
Hidden Z
803bbef6c6
injector: output errors to stderr
14 years ago
Hidden Z
5e8b354f9f
injector: ignore comments and empty lines
14 years ago
Hidden Z
d7dce40818
Add jumpservice implementation
14 years ago