20) $language = substr($language, 0, 20); $language = stripslashes($language); $language = strip_tags($language); $language = htmlspecialchars($language, ENT_QUOTES); } else { $language = 'text'; } // Add a description if available if (isset($_POST['desc']) && "" != ($dtemp = rtrim($_POST['desc']))) { $desc = stripslashes($dtemp); if (strlen($desc) > 80) { $desc = substr($desc, 0, 76) . '...'; } $desc = strip_tags($desc); $desc = htmlspecialchars($desc, ENT_QUOTES); if ("" == $desc) $desc = "No description"; } else $desc = "No description"; if (get_magic_quotes_gpc()) $text = stripslashes($text); $url = $config['storage']->setContent($text, $language, $nick, $desc); header('Location: ' . $url); exit; } header('Location: ' . $_SERVER['HTTP_REFERER']); exit; ?>