CC-4113: Smart Playlist: Filename contains '\' cannot be searched
-fixed
This commit is contained in:
parent
899c94eb67
commit
3947b6d033
|
@ -1160,12 +1160,13 @@ EOT;
|
||||||
} else if ($spCriteriaModifier == "is in the range") {
|
} else if ($spCriteriaModifier == "is in the range") {
|
||||||
$spCriteriaValue = "$spCriteria > '$spCriteriaValue' AND $spCriteria < '$criteria[extra]'";
|
$spCriteriaValue = "$spCriteria > '$spCriteriaValue' AND $spCriteria < '$criteria[extra]'";
|
||||||
}
|
}
|
||||||
|
|
||||||
$spCriteriaModifier = self::$modifier2CriteriaMap[$spCriteriaModifier];
|
$spCriteriaModifier = self::$modifier2CriteriaMap[$spCriteriaModifier];
|
||||||
try{
|
try{
|
||||||
if ($i > 0) {
|
if ($i > 0) {
|
||||||
$qry->addOr($spCriteria, $spCriteriaValue, $spCriteriaModifier);
|
$qry->addOr($spCriteria, addslashes($spCriteriaValue), $spCriteriaModifier);
|
||||||
} else {
|
} else {
|
||||||
$qry->add($spCriteria, $spCriteriaValue, $spCriteriaModifier);
|
$qry->add($spCriteria, addslashes($spCriteriaValue), $spCriteriaModifier);
|
||||||
}
|
}
|
||||||
}catch (Exception $e){
|
}catch (Exception $e){
|
||||||
Logging::log($e);
|
Logging::log($e);
|
||||||
|
|
Loading…
Reference in New Issue