~ubuntu-branches/ubuntu/precise/phppgadmin/precise

« back to all changes in this revision

Viewing changes to libraries/lib.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2011-10-05 21:47:32 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20111005214732-skb0smj244cm8o46
Tags: 5.0.3-1
New upstream release, fixes XSS vulnerabilities.
Closes: #644290, CVE-2011-3598.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        $appName = 'phpPgAdmin';
17
17
 
18
18
        // Application version
19
 
        $appVersion = '5.0.2';
 
19
        $appVersion = '5.0.3';
20
20
 
21
21
        // PostgreSQL and PHP minimum version
22
22
        $postgresqlMinVer = '7.4';
189
189
 
190
190
                /* starting with PostgreSQL 9.0, we can set the application name */
191
191
                if(isset($_server_info['pgVersion']) && $_server_info['pgVersion'] >= 9)
192
 
                        putenv("PGOPTIONS=--application_name={$appName}_{$appVersion}");
 
192
                        putenv("PGAPPNAME={$appName}_{$appVersion}");
193
193
 
194
194
                // Redirect to the login form if not logged in
195
195
                if (!isset($_server_info['username'])) {