2018-07-19 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that caused the credentials fields to
	be greyed out when configuring a podcast feed to use SFTP uploads.
	* Fixed a bug in 'RDExport' that caused encoding of credentials
	to be corrupt.
	* Fixed a regression in the RDFeed service that caused detection
	of feed	names to fail.
This commit is contained in:
Fred Gleason
2018-07-19 20:11:02 +00:00
parent 25e0868a42
commit 94ff45a4dc
5 changed files with 15 additions and 21 deletions

View File

@@ -113,20 +113,6 @@ MainObject::MainObject(QObject *parent)
exit(0);
}
//
// Read Command Options
//
for(unsigned i=0;i<rda->cmdSwitch()->keys();i++) {
if(!rda->cmdSwitch()->processed(i)) {
printf("Content-type: text/html\n");
printf("Status: 500\n");
printf("\n");
printf("rdfeed.xml: unknown command option \"%s\"\n",
(const char *)rda->cmdSwitch()->key(i));
exit(0);
}
}
if(cast_id<0) {
ServeRss(keyname,count);
}
@@ -219,7 +205,8 @@ void MainObject::ServeRss(const char *keyname,bool count)
"ID "+ // 12
"from PODCASTS where "+
QString().sprintf("(FEED_ID=%d)&&",q->value(13).toUInt())+
QString().sprintf("(STATUS=%d)",RDPodcast::StatusActive);
QString().sprintf("(STATUS=%d) ",RDPodcast::StatusActive)+
"order by ORIGIN_DATETIME";
if(q->value(15).toString()=="N") {
sql+=" desc";
}
@@ -231,7 +218,7 @@ void MainObject::ServeRss(const char *keyname,bool count)
getenv("QUERY_STRING"),
q->value(13).toUInt(),
q1->value(7).toUInt()));
// printf("%s\n",(const char *)ResolveItemWildcards(q1,q));
//printf("%s\n",(const char *)ResolveItemWildcards(q1,q));
printf("</item>\n");
}
delete q1;