mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
SuggestController: move escaping to controller
This commit is contained in:
parent
1e43ca5d99
commit
ec23a205c7
@ -44,7 +44,7 @@ class SuggestController extends ActionController
|
|||||||
$matches[] = $this->highlight($str, $search);
|
$matches[] = $this->highlight($str, $search);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$matches[] = $str;
|
$matches[] = Util::escapeForHtml($str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<?php foreach ($suggestions as $suggest): ?>
|
<?php foreach ($suggestions as $suggest): ?>
|
||||||
<li><?= $this->escape($suggest) ?></li>
|
<li><?= $suggest ?></li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user