mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2024-11-21 16:25:12 -05:00
simpleportal with eval removed
This commit is contained in:
parent
4df31ab18f
commit
46ba401666
Binary file not shown.
BIN
Packages/backups/2014-05-20_backup_SimplePortal_2.tar.gz
Normal file
BIN
Packages/backups/2014-05-20_backup_SimplePortal_2.tar.gz
Normal file
Binary file not shown.
BIN
Packages/backups/2014-05-20_before_SimplePortal_2.tar.gz
Normal file
BIN
Packages/backups/2014-05-20_before_SimplePortal_2.tar.gz
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
1400527916
|
1400602042
|
@ -3550,7 +3550,7 @@ function sp_php($parameters, $id, $return_parameters = false)
|
|||||||
if ($return_parameters)
|
if ($return_parameters)
|
||||||
return $block_parameters;
|
return $block_parameters;
|
||||||
|
|
||||||
$content = !empty($parameters['content']) ? $parameters['content'] : '';
|
$content = " ";
|
||||||
|
|
||||||
$content = trim(un_htmlspecialchars($content));
|
$content = trim(un_htmlspecialchars($content));
|
||||||
if (substr($content, 0, 5) == '<?php')
|
if (substr($content, 0, 5) == '<?php')
|
||||||
@ -3558,7 +3558,7 @@ function sp_php($parameters, $id, $return_parameters = false)
|
|||||||
if (substr($content, -2) == '?>')
|
if (substr($content, -2) == '?>')
|
||||||
$content = substr($content, 0, -2);
|
$content = substr($content, 0, -2);
|
||||||
|
|
||||||
eval($content);
|
//eval($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -509,7 +509,8 @@ function getShowInfo($block_id = null, $display = null, $custom = null)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return @eval(str_replace(array_keys($variables), array_values($variables), un_htmlspecialchars(substr($custom, 4))) . ';');
|
//return @eval(str_replace(array_keys($variables), array_values($variables), un_htmlspecialchars(substr($custom, 4))) . ';');
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$custom = explode(',', $custom);
|
$custom = explode(',', $custom);
|
||||||
@ -1154,7 +1155,7 @@ function sportal_parse_page($body, $type)
|
|||||||
$body = trim(un_htmlspecialchars($body));
|
$body = trim(un_htmlspecialchars($body));
|
||||||
$body = trim($body, '<?php');
|
$body = trim($body, '<?php');
|
||||||
$body = trim($body, '?>');
|
$body = trim($body, '?>');
|
||||||
eval($body);
|
//eval($body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user