|
a/src/internfile/mh_exec.cpp |
|
b/src/internfile/mh_exec.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: mh_exec.cpp,v 1.9 2007-02-06 18:01:58 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: mh_exec.cpp,v 1.10 2008-08-26 07:31:54 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
54 |
|
54 |
|
55 |
// Build parameter list: delete cmd name and add the file name
|
55 |
// Build parameter list: delete cmd name and add the file name
|
56 |
list<string>::iterator it = params.begin();
|
56 |
list<string>::iterator it = params.begin();
|
57 |
list<string>myparams(++it, params.end());
|
57 |
list<string>myparams(++it, params.end());
|
58 |
myparams.push_back(m_fn);
|
58 |
myparams.push_back(m_fn);
|
|
|
59 |
if (!m_ipath.empty())
|
|
|
60 |
myparams.push_back(m_ipath);
|
59 |
|
61 |
|
60 |
// Execute command and store the result text, which is supposedly html
|
62 |
// Execute command and store the result text, which is supposedly html
|
61 |
string& html = m_metaData["content"];
|
63 |
string& html = m_metaData["content"];
|
62 |
html.erase();
|
64 |
html.erase();
|
63 |
ExecCmd mexec;
|
65 |
ExecCmd mexec;
|