summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-09-29 16:11:03 +0200
committerthlo <smarttv640@gmail.com>2013-09-29 16:11:03 +0200
commit19bf017c9346d35a990366a12d8ba2f0e9622ef4 (patch)
tree21ad79b0c3737832e8cba186ca830362d702717e
parent4148888336af42a0ddb7a2e1e9dbc70703a2ba71 (diff)
downloadvdr-plugin-smarttvweb-19bf017c9346d35a990366a12d8ba2f0e9622ef4.tar.gz
vdr-plugin-smarttvweb-19bf017c9346d35a990366a12d8ba2f0e9622ef4.tar.bz2
Fix in /recording.xml
-rwxr-xr-xresponsememblk.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/responsememblk.c b/responsememblk.c
index 273890a..5fe4118 100755
--- a/responsememblk.c
+++ b/responsememblk.c
@@ -2211,9 +2211,11 @@ int cResponseMemBlk::sendRecordingsXml(struct stat *statbuf) {
}
if (mRequest->getQueryAttributeValue(&avps, "guid", guid) == OKAY){
+ guid = cUrlEncode::doUrlSaveDecode(guid);
*(mLog->log())<< DEBUGPREFIX
<< " Found a guid Parameter: " << guid
<< endl;
+
single_item = true;
}
@@ -2312,8 +2314,12 @@ int cResponseMemBlk::sendRecordingsXml(struct stat *statbuf) {
cRecording *recording = NULL;
if (single_item) {
recording = Recordings.GetByName(guid.c_str());
- if (recording == NULL)
+ if (recording == NULL) {
*(mLog->log())<< DEBUGPREFIX << " WARNING in sendRecordingsXml: recording " << guid << " not found" << endl;
+ sendError(400, "Bad Request", NULL, "007 Failed to find the recording.");
+ return OKAY;
+ }
+
}
else {
recording = Recordings.First();