mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
2018-07-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCastSearchString()' that threw a SQL error when passed a filter string consisting of pure whitespace. * Fixed bugs in 'rdcastmanager.cgi' that caused corruption when displaying UTF-8 strings.
This commit is contained in:
@@ -28,7 +28,7 @@ QString RDCastSearchString(const QString &filter,bool unexp_only,
|
||||
bool active_only)
|
||||
{
|
||||
QString ret;
|
||||
if(!filter.isEmpty()) {
|
||||
if(!filter.stripWhiteSpace().isEmpty()) {
|
||||
QString fil=RDEscapeString(filter);
|
||||
ret+=QString("&&((PODCASTS.ITEM_TITLE like \"%")+fil+"%\")||"+
|
||||
"(PODCASTS.ITEM_DESCRIPTION like \"%"+fil+"%\")||"+
|
||||
|
||||
Reference in New Issue
Block a user