mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Some small fix regarding parsing creature name from request
This commit is contained in:
parent
ab478f488a
commit
7303aabc2b
@ -62,7 +62,8 @@ if (empty($_REQUEST['creature'])) {
|
||||
echo '</tbody></table>';
|
||||
|
||||
} else {
|
||||
$monster_name = stripslashes(trim(ucwords($_REQUEST['creature'])));
|
||||
$monster_name = urldecode(stripslashes(trim(ucwords($_REQUEST['creature']))));
|
||||
|
||||
$monster = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 AND `name` = ' . $db->quote($monster_name) . ';')->fetch();
|
||||
if (isset($monster['name'])) {
|
||||
$title = $monster['name'] . " - Creatures";
|
||||
@ -170,4 +171,4 @@ if (empty($_REQUEST['creature'])) {
|
||||
|
||||
</script>
|
||||
|
||||
<script src="<?php echo BASE_URL; ?>tools/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo BASE_URL; ?>tools/js/jquery.dataTables.min.js"></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user