|
@@ -6,10 +6,8 @@
|
|
|
$id = $db->escape_string($_POST['id']);
|
|
|
|
|
|
$source = $db->escape_string($_POST['source']);
|
|
|
- $source = strip_tags($source);
|
|
|
$source = strtolower($source);
|
|
|
$destination = $db->escape_string($_POST['destination']);
|
|
|
- $destination = strip_tags($destination);
|
|
|
$destination = strtolower($destination);
|
|
|
|
|
|
if($source !== "" && $destination !== ""){
|
|
@@ -31,10 +29,8 @@
|
|
|
|
|
|
else if($savemode === "create"){
|
|
|
$source = $db->escape_string($_POST['source']);
|
|
|
- $source = strip_tags($source);
|
|
|
$source = strtolower($source);
|
|
|
$destination = $db->escape_string($_POST['destination']);
|
|
|
- $destination = strip_tags($destination);
|
|
|
$destination = strtolower($destination);
|
|
|
|
|
|
if($source !== "" && $destination !== ""){
|
|
@@ -96,11 +92,11 @@ Here you can edit a redirect.
|
|
|
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="text" name="source" class="textinput" placeholder="Source (single address)" required="required" value="<?php if(isset($source)){echo $source;}?>" autofocus/>
|
|
|
+ <input type="text" name="source" class="textinput" placeholder="Source (single address)" required="required" value="<?php if(isset($source)){echo strip_tags($source);}?>" autofocus/>
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
- <textarea name="destination" class="textinput" placeholder="Destination (multiple addresses separated by comma possible)" required="required"><?php if(isset($destination)){echo $destination;} ?></textarea>
|
|
|
+ <textarea name="destination" class="textinput" placeholder="Destination (multiple addresses separated by comma possible)" required="required"><?php if(isset($destination)){echo strip_tags($destination);} ?></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|