Permalink
Browse files

Fixed bug where the getAppUrl() function would mistakingly return an …

…https URL on a non-HTTPS connection
  • Loading branch information...
1 parent 4fd4d75 commit e7799402cf1447a3ff3b880129ccdfa15eb3d6ed @PHLAK PHLAK committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 resources/DirectoryLister.php
@@ -521,7 +521,7 @@ private function _isHidden($filePath) {
private function _getAppUrl() {
// Get the server protocol
- if (isset($_SERVER['HTTPS'])) {
+ if (!empty($_SERVER['HTTPS'])) {
$protocol = 'https://';
} else {
$protocol = 'http://';

0 comments on commit e779940

Please sign in to comment.