1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Test fixes. Email arraySet() test added.

This commit is contained in:
Cameron
2020-08-11 08:30:00 -07:00
parent 0f02e9a9a2
commit 370fdb13f6
6 changed files with 156 additions and 10 deletions

View File

@@ -486,12 +486,18 @@ class e_plugin
public function isValidAddonMarkup($content='')
{
if ((substr($content, 0, 5) != '<'.'?php') || ((substr($content, -2, 2) != '?'.'>') && (strrpos($content, '?'.'>') !== FALSE)))
if ((substr($content, 0, 5) != '<'.'?php'))
{
return false;
}
return true;
if ((substr($content, -2, 2) != '?'.'>') && (strrpos(substr($content, -20, 20), '?'.'>') !== false))
{
return false;
}
return true;
}
@@ -2428,7 +2434,7 @@ class e107plugin
function manage_tables($action, $var)
{
$this->log("Running ".__FUNCTION__);
$sql = e107::getDB();
$sql = e107::getDb();
$mes = e107::getMessage();
if (!is_array($var))