Skip to content

Commit

Permalink
strip_tags added
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurkuru committed Sep 3, 2010
1 parent 5f2e299 commit 12701c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions converters/index.php
Expand Up @@ -21,15 +21,15 @@
if(!empty($_POST['input'])){
$input = new Converter();
if($_POST['type']=="1"){
echo "<textarea name='result' rows=5 cols=30>".htmlspecialchars($input->Base64Decode($_POST['input']))."</textarea>";
echo "<textarea name='result' rows=5 cols=30>".strip_tags(htmlspecialchars($input->Base64Decode($_POST['input'])))."</textarea>";
}
if($_POST['type']=="2"){
echo "<textarea name='result' rows=5 cols=30>".htmlspecialchars($input->Base64Encode($_POST['input']))."</textarea>";
echo "<textarea name='result' rows=5 cols=30>".strip_tags(htmlspecialchars($input->Base64Encode($_POST['input'])))."</textarea>";
}
}else{
echo "<textarea name='result' rows=5 cols=30></textarea>";

}
?>
</body>
</html>
</html>

0 comments on commit 12701c9

Please sign in to comment.