| @@ 2300-2306 (lines=7) @@ | ||
| 2297 | throw new phpmailerException($this->lang('file_open').$path, self::STOP_CONTINUE); |
|
| 2298 | } |
|
| 2299 | $magic_quotes = get_magic_quotes_runtime(); |
|
| 2300 | if ($magic_quotes) { |
|
| 2301 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
|
| 2302 | set_magic_quotes_runtime(0); |
|
| 2303 | } else { |
|
| 2304 | ini_set('magic_quotes_runtime', 0); |
|
| 2305 | } |
|
| 2306 | } |
|
| 2307 | $file_buffer = file_get_contents($path); |
|
| 2308 | $file_buffer = $this->encodeString($file_buffer, $encoding); |
|
| 2309 | if ($magic_quotes) { |
|
| @@ 2309-2315 (lines=7) @@ | ||
| 2306 | } |
|
| 2307 | $file_buffer = file_get_contents($path); |
|
| 2308 | $file_buffer = $this->encodeString($file_buffer, $encoding); |
|
| 2309 | if ($magic_quotes) { |
|
| 2310 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
|
| 2311 | set_magic_quotes_runtime($magic_quotes); |
|
| 2312 | } else { |
|
| 2313 | ini_set('magic_quotes_runtime', $magic_quotes); |
|
| 2314 | } |
|
| 2315 | } |
|
| 2316 | ||
| 2317 | return $file_buffer; |
|
| 2318 | } catch (Exception $e) { |
|