mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Don't read arbitrary files from doc directory
Exposing all the files in doc directory is not a safe thing to do. It is best to let only intended file to be read and displayed.
This commit is contained in:
parent
128ef20743
commit
89d982715c
@ -30,5 +30,5 @@ urlpatterns = patterns( # pylint: disable-msg=C0103
|
||||
url(r'^help/$', 'index', name='index'),
|
||||
url(r'^help/index/$', 'index', name='index_explicit'),
|
||||
url(r'^help/about/$', 'about', name='about'),
|
||||
url(r'^help/page/([\w]+)/$', 'helppage', name='helppage'),
|
||||
url(r'^help/page/(plinth|hacking|faq)/$', 'helppage', name='helppage'),
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user