Package: scuttle
Version: 0.7.4-1
Severity: normal
Tags: patch
In header.inc.php, Scuttle attempts to determine the root URL for
Scuttle. The code for this is hard coded to use http; however, I run
scuttle on https system, so this generates erroneous URLs.
-- System Information:
Debian Release: 5.0
APT prefers jaunty-updates
APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-11-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages scuttle depends on:
ii apache2 2.2.11-2ubuntu2.3 Apache HTTP Server metapackage
ii apache2-m 2.2.11-2ubuntu2.3 Apache HTTP Server - traditional n
ii dbconfig- 1.8.40 common framework for packaging dat
ii debconf [ 1.5.26ubuntu3 Debian configuration management sy
ii mysql-cli 5.1.30really5.0.75-0ubuntu10.2 MySQL database client (metapackage
ii mysql-cli 5.1.30really5.0.75-0ubuntu10.2 MySQL database client binaries
ii php-gette 1.0.7-6 read gettext MO files directly, wi
ii php5 5.2.6.dfsg.1-3ubuntu4.2 server-side, HTML-embedded scripti
ii php5-mysq 5.2.6.dfsg.1-3ubuntu4.2 MySQL module for php5
ii po-debcon 1.0.15ubuntu1 manage translated Debconf template
ii wwwconfig 0.2.1 Debian web auto configuration
scuttle recommends no packages.
Versions of packages scuttle suggests:
ii mysql-ser 5.1.30really5.0.75-0ubuntu10.2 MySQL database server (metapackage
ii mysql-ser 5.1.30really5.0.75-0ubuntu10.2 MySQL database server binaries
-- debconf information:
scuttle/upgrade-error: abort
scuttle/upgrade-backup: true
scuttle/db/app-user: scuttle
scuttle/purge: false
scuttle/missing-db-package-error: abort
scuttle/dbconfig-remove:
scuttle/dbconfig-reinstall: false
scuttle/remote/port:
scuttle/mysql/admin-user: root
scuttle/mysql/method: unix socket
scuttle/internal/skip-preseed: false
scuttle/db/dbname: scuttle
scuttle/internal/reconfiguring: false
* scuttle/dbconfig-install: true
scuttle/remote/newhost:
scuttle/passwords-do-not-match:
scuttle/locale: de_DE
scuttle/dbconfig-upgrade: true
scuttle/remove-error: abort
scuttle/database-type: mysql
scuttle/webserver:
scuttle/install-error: abort
scuttle/remote/host:
Index: branches/version-0.7/header.inc.php
===================================================================
--- branches/version-0.7/header.inc.php (revision 26)
+++ branches/version-0.7/header.inc.php (working copy)
@@ -24,7 +24,14 @@
$root .= '/';
}
$path = $root;
- $root = 'http://'. $_SERVER['HTTP_HOST'] . $root;
+ if ($_SERVER['HTTPS'] == 'on') {
+ $protocol = 'https';
+ } elseif ($_SERVER['SERVER_PORT'] == '443') {
+ $protocol = 'https';
+ } else {
+ $protocol = 'http';
+ }
+ $root = $protocol . '://'. $_SERVER['HTTP_HOST'] . $root;
}
// Error codes
@@ -32,4 +39,4 @@
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
-?>
\ No newline at end of file
+?>