summaryrefslogtreecommitdiff
path: root/responsememblk.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
committerthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
commitb67fdbd19781ea9a5c00e5ce2332ae80aa4e2647 (patch)
tree1e73bb20f1ac91725dfd1e0f124c419c1fe7a391 /responsememblk.c
parentd9ccb92d336bb36a90b3ab9ace2d221644442d43 (diff)
downloadvdr-plugin-smarttvweb-b67fdbd19781ea9a5c00e5ce2332ae80aa4e2647.tar.gz
vdr-plugin-smarttvweb-b67fdbd19781ea9a5c00e5ce2332ae80aa4e2647.tar.bz2
New enable flag for RecCmds and new Port parameter in smarttvweb.conf. Bug fixes.
Diffstat (limited to 'responsememblk.c')
-rwxr-xr-xresponsememblk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/responsememblk.c b/responsememblk.c
index f77f950..292dabb 100755
--- a/responsememblk.c
+++ b/responsememblk.c
@@ -1172,7 +1172,6 @@ void cResponseMemBlk::sendRecCmds() {
void cResponseMemBlk::receiveExecRecCmdReq() {
vector<sQueryAVP> avps;
- mRequest->parseQueryLine(&avps);
string guid;
string cmd_str;
uint cmdid;
@@ -1180,6 +1179,14 @@ void cResponseMemBlk::receiveExecRecCmdReq() {
if (isHeadRequest())
return;
+ if (! mRequest->mFactory->getConfig()->getRecCmds()) {
+ sendError(400, "Bad Request", NULL, "017 execreccmd disabled.");
+ return;
+
+ }
+ mRequest->parseQueryLine(&avps);
+
+
if (mRequest->getQueryAttributeValue(&avps, "guid", guid) != OKAY){
sendError(400, "Bad Request", NULL, "002 No guid in query line");
return;