~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to src/request_handler.cc

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
8
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
9
9
    
10
 
    Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
 
10
    Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
11
11
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
12
                            Leonhard Wimmer <leo@mediatomb.cc>
13
13
    
24
24
    version 2 along with MediaTomb; if not, write to the Free Software
25
25
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
26
26
    
27
 
    $Id: request_handler.cc 1698 2008-02-23 20:48:30Z lww $
 
27
    $Id: request_handler.cc 2010 2009-01-11 19:10:43Z lww $
28
28
*/
29
29
 
30
30
/// \file request_handler.cc
38
38
 
39
39
using namespace zmm;
40
40
 
41
 
void RequestHandler::split_url(const char *url, char separator, String &path, String &parameters, bool force_amp_unescape)
 
41
void RequestHandler::split_url(const char *url, char separator, String &path, String &parameters)
42
42
{
43
43
    int i1;
44
44
 
45
 
    String url_s;
46
 
    if (force_amp_unescape)
47
 
    {
48
 
        // Noxon V1 sends us double encoded xml crap in the url
49
 
        url_s = unescape_amp(String(url));
50
 
        url_s = unescape_amp(String(url_s));
51
 
    }
52
 
    else
53
 
        url_s = String(url);
54
 
 
55
 
    url_s = url_unescape(url_s);
 
45
    String url_s = String(url);
56
46
 
57
47
    if (separator == '/')
58
48
        i1 = url_s.rindex(separator);