~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to lib/configonlylib.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        error_reporting($olderror ^ E_NOTICE);
96
96
    }
97
97
 
 
98
    // No null bytes expected in our data, so let's remove it.
 
99
    $value = str_replace("\0", '', $value);
 
100
 
98
101
    static $buggyiconv = null;
99
102
    if ($buggyiconv === null) {
100
103
        $buggyiconv = (!function_exists('iconv') or iconv('UTF-8', 'UTF-8//IGNORE', '100'.chr(130).'€') !== '100€');