summaryrefslogtreecommitdiff
path: root/frontend_svr.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontend_svr.c')
-rw-r--r--frontend_svr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index 93ccdeab..d0f07b61 100644
--- a/frontend_svr.c
+++ b/frontend_svr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_svr.c,v 1.56.2.5 2009-06-04 13:16:37 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.56.2.4 2009-02-12 11:14:15 phintuka Exp $
*
*/
@@ -1332,12 +1332,11 @@ void cXinelibServer::Handle_Control_HTTP(int cli, const char *arg)
else if(!strncmp(m_State[cli]->Uri(), "/PLAYFILE", 9)) {
if( *m_FileName && m_bPlayingFile) {
- cString file = m_FileName;
- const char *pos = strstr(m_FileName, "#subtitle:");
- if(pos)
- file.Truncate(pos - m_FileName);
- bool Allow = ( !strcmp_escaped(file, m_State[cli]->Uri() + 9)
+ char *pos = strstr(m_FileName, "#subtitle:");
+ if(pos) *pos = 0;
+ bool Allow = ( !strcmp_escaped(m_FileName, m_State[cli]->Uri() + 9)
|| (pos && !strcmp_escaped(pos + 10, m_State[cli]->Uri() + 9)));
+ if(pos) *pos = '#';
if(Allow) {
LOGMSG("HTTP streaming media file");