mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:20:12 +01:00
fixed an xss issue in the gui
This commit is contained in:
parent
eb334317ca
commit
f0e81b60ff
@ -27,6 +27,8 @@ function AUDIT($action = 0, $email = '', $ipaddr = '', $id = 0, $description = '
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
$description = htmlspecialchars($description);
|
||||
|
||||
$query = $db->query("INSERT INTO " . TABLE_AUDIT . " (ts, email, domain, action, ipaddr, meta_id, description) VALUES(?,?,?,?,?,?,?)", array(time(), $email, $a[1], $action, $ipaddr, $id, $description));
|
||||
|
||||
return $db->countAffected();
|
||||
|
@ -10,7 +10,7 @@
|
||||
if(isset($s['search'])) {
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="#" onclick="Piler.load_search_results_for_saved_query('<?php print urlencode($term['term']); ?>');"><?php print $s['search']; ?></a> | <a href="#" class="menulink" onclick="Piler.remove_saved_search_term(<?php print $term['ts']; ?>); return false;"><?php print $text_remove; ?></a></td>
|
||||
<td><a href="#" onclick="Piler.load_search_results_for_saved_query('<?php print urlencode($term['term']); ?>');"><?php print htmlspecialchars($s['search']); ?></a> | <a href="#" class="menulink" onclick="Piler.remove_saved_search_term(<?php print $term['ts']; ?>); return false;"><?php print $text_remove; ?></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } } ?>
|
||||
|
@ -18,7 +18,7 @@
|
||||
if(isset($s['search']) && $s['search']) {
|
||||
?>
|
||||
<div class="resultrow center">
|
||||
<a href="#" onclick="Piler.load_search_results_for_saved_query('<?php print urlencode($term['term']); ?>');"><?php print $s['search']; ?></a> | <a href="#" class="menulink" onclick="Piler.remove_saved_search_term(<?php print $term['ts']; ?>); return false;"><?php print $text_remove; ?></a></br />
|
||||
<a href="#" onclick="Piler.load_search_results_for_saved_query('<?php print urlencode($term['term']); ?>');"><?php print htmlspecialchars($s['search']); ?></a> | <a href="#" class="menulink" onclick="Piler.remove_saved_search_term(<?php print $term['ts']; ?>); return false;"><?php print $text_remove; ?></a></br />
|
||||
</div>
|
||||
<?php } } ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user