Commit cb2885c0 authored by Nico Schallehn's avatar Nico Schallehn

weiter umlaute umgewandelt

parent 11e082d0
......@@ -103,14 +103,23 @@ class MediaDBAPI{
}
if(isset($GET_arr['Suche'])){
/* Work a round für Android 5 Geräte*/
$GET_arr['Suche'] = str_replace("\u00e4", "ä", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00f6", "ö", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00fc", "ü", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00c4", "Ä", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00d6", "Ö", $GET_arr['Suche']);
$GET_arr['Suche'] = str_replace("\u00dc", "Ü", $GET_arr['Suche']);
$SucheWort = str_replace("\u00e4", "ä", $GET_arr['Suche']);
$SucheWort = str_replace("\u00f6", "ö", $SucheWort);
$SucheWort = str_replace("\u00fc", "ü", $SucheWort);
$SucheWort = str_replace("\u00c4", "Ä", $SucheWort);
$SucheWort = str_replace("\u00d6", "Ö", $SucheWort);
$SucheWort = str_replace("\u00dc", "Ü", $SucheWort);
$SucheWort = str_replace("%C3%A4", "ä", $SucheWort);
$SucheWort = str_replace("%C3%B6", "ö", $SucheWort);
$SucheWort = str_replace("%C3%BC", "ü", $SucheWort);
$SucheWort = str_replace("%C3%84", "Ä", $SucheWort);
$SucheWort = str_replace("%C3%96", "Ö", $SucheWort);
$SucheWort = str_replace("%C3%9C", "Ü", $SucheWort);
$Suche = " (`name` LIKE '%".$GET_arr['Suche']."%' OR `md5` LIKE '%".$GET_arr['Suche']."%' OR `comment` LIKE '%".$GET_arr['Suche']."%')";
$Suche = " (`name` LIKE '%".$SucheWort."%' OR `md5` LIKE '%".$SucheWort."%' OR `comment` LIKE '%".$SucheWort."%')";
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
$Where .= (($first?"":" AND ").$Suche);
$first = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment