Skip to content

Commit

Permalink
Update home.php
Browse files Browse the repository at this point in the history
Added isset() function to work well
  • Loading branch information
LunaM00n authored Jun 29, 2019
1 parent 51fc7cc commit 92c336d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulnerabilities/xpath/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<form method='POST' action=''>
<div class="form-group">
<label></label>
<input type="text" class="form-control" placeholder="Search by ID" name="search" value="<?php echo $input;?>"> </input> <br>
<input type="text" class="form-control" placeholder="Search by ID" name="search" value="<?php if(isset($input)){echo $input;}?>"> </input> <br>
<div align="right"> <button class="btn btn-default" name="submit" type="submit">Search</button></div>
</div>
</form>
Expand All @@ -59,4 +59,4 @@
<hr>

</div>
<?php include_once('../../about.html'); ?>
<?php include_once('../../about.html'); ?>

0 comments on commit 92c336d

Please sign in to comment.