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

« back to all changes in this revision

Viewing changes to libraries/relation_cleanup.lib.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:
3
3
/**
4
4
 * Set of functions used for cleaning up phpMyAdmin tables
5
5
 *
6
 
 * @version $Id: relation_cleanup.lib.php 11336 2008-06-21 15:01:27Z lem9 $
 
6
 * @version $Id: relation_cleanup.lib.php 11986 2008-11-24 11:05:40Z nijel $
 
7
 * @package phpMyAdmin
7
8
 */
8
9
if (! defined('PHPMYADMIN')) {
9
10
    exit;
28
29
function PMA_relationsCleanupColumn($db, $table, $column)
29
30
{
30
31
    $cfgRelation = PMA_getRelationsParam();
31
 
    
 
32
 
32
33
    if ($cfgRelation['commwork']) {
33
34
        $remove_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['column_info'])
34
35
                    . ' WHERE db_name  = \'' . PMA_sqlAddslashes($db) . '\''