Opps, missed them
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
98b407218d
commit
b6648215b8
1 changed files with 7 additions and 11 deletions
|
@ -442,10 +442,11 @@ if (! function_exists('sanitise_acl')) {
|
||||||
* @param string $item
|
* @param string $item
|
||||||
*/
|
*/
|
||||||
function sanitise_acl(&$item) {
|
function sanitise_acl(&$item) {
|
||||||
if (intval($item))
|
if (intval($item)) {
|
||||||
$item = '<' . intval(notags(trim($item))) . '>';
|
$item = '<' . intval(notags(trim($item))) . '>';
|
||||||
else
|
} else {
|
||||||
unset($item);
|
unset($item);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
@ -461,10 +462,11 @@ if (! function_exists('perms2str')) {
|
||||||
*/
|
*/
|
||||||
function perms2str($p) {
|
function perms2str($p) {
|
||||||
$ret = '';
|
$ret = '';
|
||||||
if (is_array($p))
|
if (is_array($p)) {
|
||||||
$tmp = $p;
|
$tmp = $p;
|
||||||
else
|
} else {
|
||||||
$tmp = explode(',',$p);
|
$tmp = explode(',',$p);
|
||||||
|
}
|
||||||
|
|
||||||
if (is_array($tmp)) {
|
if (is_array($tmp)) {
|
||||||
array_walk($tmp,'sanitise_acl');
|
array_walk($tmp,'sanitise_acl');
|
||||||
|
@ -670,11 +672,6 @@ function get_template_file($a, $filename, $root = '') {
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (! function_exists('attribute_contains')) {
|
if (! function_exists('attribute_contains')) {
|
||||||
/**
|
/**
|
||||||
* for html,xml parsing - let's say you've got
|
* for html,xml parsing - let's say you've got
|
||||||
|
@ -1416,8 +1413,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
|
||||||
if ($filetype) {
|
if ($filetype) {
|
||||||
$filesubtype = strtolower(substr( $mime, strpos($mime,'/') + 1 ));
|
$filesubtype = strtolower(substr( $mime, strpos($mime,'/') + 1 ));
|
||||||
$filesubtype = str_replace('.', '-', $filesubtype);
|
$filesubtype = str_replace('.', '-', $filesubtype);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$filetype = 'unkn';
|
$filetype = 'unkn';
|
||||||
$filesubtype = 'unkn';
|
$filesubtype = 'unkn';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue