Skip to content
Browse files

Add some utf8 encodes again

  • Loading branch information...
1 parent e2f8545 commit 701f5f008637fb5c3dae0167a4aa9410dfe5289d @dmvieira committed Oct 6, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 room/userlist.php
View
8 room/userlist.php
@@ -10,9 +10,9 @@
//Start Array
$data = array();
// Get data to work with
- $current = cleanInput($_GET['current']);
- $room = cleanInput($_GET['room']);
- $username = cleanInput($_GET['username']);
+ $current = utf8_decode(cleanInput($_GET['current']));
+ $room = utf8_decode(cleanInput($_GET['room']));
+ $username = utf8_decode(cleanInput($_GET['username']));
$now = time();
// INSERT your data (if is not already there)
$findUser = "SELECT * FROM `chat_users_rooms` WHERE `username` = '$username' AND `room` ='$room' ";
@@ -79,4 +79,4 @@
}
echo json_encode($data);
-?>
+?>

0 comments on commit 701f5f0

Please sign in to comment.
Something went wrong with that request. Please try again.