~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to changelog.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2009-06-30 14:05:13 UTC
  • mfrom: (1.2.1 upstream) (36.1.2 karmic)
  • Revision ID: james.westby@ubuntu.com-20090630140513-hz71do3sij2jhm4s
* New upstream version fixing XSS (PMASA-2009-5).
* Document no empty password in README.Debian and the shipped sample
  configuration file (LP: #388703).
* Install service file for avahi (if web service enabled and if avahi is
  installed) (LP: #369244).
* Mention protecting of setup if not using provided configuration snippets
  for webservers.
* Call ucf with --debconf-ok in postrm (Closes: #534894).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Simple script to set correct charset for changelog
5
5
 *
6
6
 * @version $Id: changelog.php 12326 2009-03-25 16:50:28Z lem9 $
7
 
 */
8
 
 
9
 
$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
 
7
 * @package phpMyAdmin
 
8
 */
 
9
 
 
10
/**
 
11
 * Load paths.
 
12
 */
 
13
require('./libraries/vendor_config.php');
 
14
 
 
15
/**
 
16
 * Read changelog.
 
17
 */
 
18
if (substr(CHANGELOG_FILE, -3) == '.gz') {
 
19
    ob_start();
 
20
    readgzfile(CHANGELOG_FILE);
 
21
    $changelog = ob_get_contents();
 
22
    ob_end_clean();
 
23
} else {
 
24
    $changelog = file_get_contents(CHANGELOG_FILE);
 
25
}
 
26
 
 
27
/**
 
28
 * Whole changelog in variable.
 
29
 */
 
30
$changelog = htmlspecialchars($changelog);
10
31
 
11
32
$replaces = array(
12
33
    '@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'