prevent XSS
This commit is contained in:
parent
c11f6cc3f9
commit
bf4626da93
|
@ -12,7 +12,7 @@ OCP\User::checkAdminUser();
|
||||||
$sites = array();
|
$sites = array();
|
||||||
for ($i = 0; $i < sizeof($_POST['site_name']); $i++) {
|
for ($i = 0; $i < sizeof($_POST['site_name']); $i++) {
|
||||||
if (!empty($_POST['site_name'][$i]) && !empty($_POST['site_url'][$i])) {
|
if (!empty($_POST['site_name'][$i]) && !empty($_POST['site_url'][$i])) {
|
||||||
array_push($sites, array($_POST['site_name'][$i], $_POST['site_url'][$i]));
|
array_push($sites, array(strip_tags($_POST['site_name'][$i]), strip_tags($_POST['site_url'][$i])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue