Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

strip_tags added

  • Loading branch information...
commit 12701c9fa043030292771117e880c84e0cdd3b7a 1 parent 5f2e299
@ozgurkuru authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 converters/index.php
View
6 converters/index.php
@@ -21,10 +21,10 @@
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>";
@@ -32,4 +32,4 @@
}
?>
</body>
-</html>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.