Skip to content

Commit

Permalink
Remove strange char in ATC info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Sep 29, 2015
1 parent 3503700 commit 415d0f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions require/class.ATC.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public static function getAll() {
}

public static function add($ident,$frequency,$latitude,$longitude,$range,$info,$date,$type = '',$ivao_id = '',$ivao_name = '') {
$info = preg_replace('/[^(\x20-\x7F)]*/','',$info);
$info = str_replace('^','<br />',$info);
$query = "INSERT INTO atc (ident,frequency,latitude,longitude,atc_range,info,atc_lastseen,type,ivao_id,ivao_name) VALUES (:ident,:frequency,:latitude,:longitude,:range,:info,:date,:type,:ivao_id,:ivao_name)";
$query_values = array(':ident' => $ident,':frequency' => $frequency,':latitude' => $latitude,':longitude' => $longitude,':range' => $range,':info' => $info,':date' => $date,':ivao_id' => $ivao_id,':ivao_name' => $ivao_name, ':type' => $type);
try {
Expand Down

0 comments on commit 415d0f9

Please sign in to comment.