~ubuntu-branches/ubuntu/dapper/phpmyadmin/dapper-updates

« back to all changes in this revision

Viewing changes to libraries/transformations/text_plain__substr.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Roszatycki
  • Date: 2004-12-13 19:23:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20041213192357-5jfwhvbnxaip4zbv
Tags: 2:2.6.1-rc1-1
* New upstream release.
* Security fix: Command execution and file disclosure was found.
  See http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2004-4
  Closes: #285488.
* Remove 003.non_standard_port_fix.diff applied to upstream.
* Add commented out options 'extension' and 'AllowRoot' to default config
  file.
* Support mysqli.so extension. Autodetect modules from 'extension' option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
/* $Id: text_plain__substr.inc.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
 
2
/* $Id: text_plain__substr.inc.php,v 2.3 2004/03/09 15:02:28 nijel Exp $ */
3
3
// vim: expandtab sw=4 ts=4 sts=4:
4
4
 
5
5
function PMA_transformation_text_plain__substr($buffer, $options = array(), $meta = '') {
21
21
 
22
22
    $newtext = '';
23
23
    if ($options[1] != 'all') {
24
 
        $newtext = substr($buffer, $options[0], $options[1]);
 
24
        $newtext = PMA_substr($buffer, $options[0], $options[1]);
25
25
    } else {
26
 
        $newtext = substr($buffer, $options[0]);
 
26
        $newtext = PMA_substr($buffer, $options[0]);
27
27
    }
28
28
 
29
29
    $length = strlen($newtext);