Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS protection updated #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions function.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ function showdetails($standard,$rollno){
<th colspan="3">Student Details</th>
</tr>
<tr>
<td rowspan="5"><img src="dataimg/<?php echo $data['image']; ?>"/></td>
<td rowspan="5"><img src="dataimg/<?php echo htmlspecialchars($data['image'], ENT_QUOTES); ?>"/></td>
<th>Roll No</th>
<td align="center"><?php echo $data['rollno'] ?></td>
<td align="center"><?php echo htmlspecialchars($data['rollno'], ENT_QUOTES); ?></td>

</tr>
<tr>
<th>Name</th>
<td align="center"><?php echo $data['name'] ?></td>
<td align="center"><?php echo htmlspecialchars($data['name'], ENT_QUOTES); ?></td>
</tr>
<tr>
<th>City</th>
<td align="center"><?php echo $data['city'] ?></td>
<td align="center"><?php echo htmlspecialchars($data['city'], ENT_QUOTES); ?></td>
</tr>
<tr>
<th>Parents Contact no.</th>
<td align="center"><?php echo $data['pcont'] ?> </td>
<td align="center"><?php echo htmlspecialchars($data['pcont'], ENT_QUOTES); ?> </td>
</tr>
<tr>
<th>Standard</th>
<td align="center"><?php echo $data['standard'] ?> </td>
<td align="center"><?php echo htmlspecialchars($data['standard'], ENT_QUOTES); ?> </td>
</tr>


Expand Down