mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 16:20:14 +01:00
2021-02-23 Fred Gleason <fredg@paravelsystems.com>
* Removed the Qt3Support library from the build system. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -83,11 +83,11 @@ MainObject::MainObject(QObject *parent)
|
||||
rda->logAuthenticationFailure(webget_post->clientAddress());
|
||||
TextExit("missing REQUEST_METHOD",500,LINE_NUMBER);
|
||||
}
|
||||
if(QString(getenv("REQUEST_METHOD")).lower()=="get") {
|
||||
if(QString(getenv("REQUEST_METHOD")).toLower()=="get") {
|
||||
ServeLogin(200);
|
||||
Exit(0);
|
||||
}
|
||||
if(QString(getenv("REQUEST_METHOD")).lower()!="post") {
|
||||
if(QString(getenv("REQUEST_METHOD")).toLower()!="post") {
|
||||
rda->syslog(LOG_WARNING,"unsupported web method \"%s\"",
|
||||
getenv("REQUEST_METHOD"));
|
||||
rda->logAuthenticationFailure(webget_post->clientAddress());
|
||||
@@ -292,13 +292,13 @@ void MainObject::GetAudio()
|
||||
break;
|
||||
}
|
||||
fflush(NULL);
|
||||
if((fd=open(tmpfile,O_RDONLY))>=0) {
|
||||
if((fd=open(tmpfile.toUtf8(),O_RDONLY))>=0) {
|
||||
while((n=read(fd,data,2048))>0) {
|
||||
write(1,data,n);
|
||||
}
|
||||
}
|
||||
close(fd);
|
||||
unlink(tmpfile);
|
||||
unlink(tmpfile.toUtf8());
|
||||
delete tempdir;
|
||||
Exit(0);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user