Handle symlinks properly in the directory browser.
commit92dcb0a23d35b88704c7cc0729ed46409a7fc30e
authorDave Page <dpage@pgadmin.org>
Wed, 30 Nov 2016 08:48:35 +0000 (30 17:48 +0900)
committerDave Page <dpage@pgadmin.org>
Wed, 30 Nov 2016 08:51:33 +0000 (30 17:51 +0900)
tree07ae58af2674ba3970814a68772a63e8408bc4fa
parent71cecf91d2b066c53db0787d3e55dbb427371e84
Handle symlinks properly in the directory browser.

This change properly handles symlinks by expanding any it finds in the path
and issuing a redirect to the canonical location.

Whilst we're here, display links as such on the pages, sort directory listings
so the parent link is always at the top, and avoid unnecessary redirects caused
by missing /'s on URLs.
media/img/ftp/symlink.png [new file with mode: 0644]
pgweb/downloads/views.py
pgweb/util/misc.py
templates/downloads/ftpbrowser.html