source: subversion/branches/release-0.2-beta/bin/html2text.php @ 2162

Last change on this file since 2162 was 2162, checked in by thomasb, 4 years ago

Fix vulnerable bin scripts

File size: 1.3 KB
Line 
1<?php
2/*
3
4 +-----------------------------------------------------------------------+
5 | bin/html2text.php                                                     |
6 |                                                                       |
7 | This file is part of the RoundCube Webmail client                     |
8 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 |
9 | Licensed under the GNU GPL                                            |
10 |                                                                       |
11 | PURPOSE:                                                              |
12 |   Convert HTML message to plain text                                  |
13 |                                                                       |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
16 +-----------------------------------------------------------------------+
17
18 $Id: html2text.php 2070 2008-11-20 10:29:34Z alec $
19
20*/
21
22define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/');
23require INSTALL_PATH.'program/include/iniset.php';
24
25$converter = new html2text($HTTP_RAW_POST_DATA);
26
27header('Content-Type: text/plain; charset=UTF-8');
28print trim($converter->get_text());
29
30?>
Note: See TracBrowser for help on using the repository browser.