- // filtering the username if it is filled wrong
- $user = $_POST['buffer_user'];
- if (strstr($user, "@")) {
- $pos = strpos($user, "@");
- if ($pos > 0)
- $user = substr($user, 0, $pos);
- }
-
- // Filtering the hostname if someone is entering it with "http"
- $host = $_POST['buffer_host'];
- $host = trim($host);
- $host = str_replace(array("https://", "http://"), array("", ""), $host);
-