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

« back to all changes in this revision

Viewing changes to libraries/tbl_replace_fields.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-06-14 15:24:31 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20080614152431-gvx52c7r0iuxwvxl
Tags: 4:2.11.7~rc2-1
* New upstream release candidate.
  - Fixes an undisclosed security issue, which is most probably
    irrelevant to Debian, but medium urgency just in case.
  - Fixes session hash_bits override (Closes: #474557).
* Checked for policy 3.8.0, add README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *
18
18
 * note: grab_globals has extracted the fields from _FILES or HTTP_POST_FILES
19
19
 *
20
 
 * @version $Id: tbl_replace_fields.inc.php 10536 2007-07-27 14:50:37Z lem9 $
 
20
 * @version $Id: tbl_replace_fields.inc.php 11326 2008-06-17 21:32:48Z lem9 $
21
21
 *
22
22
 * @uses $_REQUEST
23
23
 * @uses defined()
29
29
 * @uses PMA_NO_VARIABLES_IMPORT
30
30
 * @uses PMA_sqlAddslashes()
31
31
 */
 
32
if (! defined('PHPMYADMIN')) {
 
33
    exit;
 
34
}
32
35
 
33
36
/**
34
37
 * do not import request variable into global scope
53
56
$file_to_insert->cleanUp();
54
57
 
55
58
if (false !== $possibly_uploaded_val) {
56
 
    $seen_binary = true;
57
59
    $val = $possibly_uploaded_val;
58
60
} else {
59
61
 
94
96
                // blobs where set, insert original fields content.
95
97
                if (! empty($prot_row[$key])) {
96
98
                    $val = '0x' . bin2hex($prot_row[$key]);
97
 
                    $seen_binary = true;
98
99
                } else {
99
100
                    $val = '';
100
101
                }