Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsteampassnet authored and nilsteampassnet committed May 2, 2018
2 parents 91f908f + f2f2fb2 commit 10f7d05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install/upgrade_run_2.1.27.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function columnExists($tablename, $column)
// Change name of field
mysqli_query($db_link, "ALTER TABLE `".$pre."misc` CHANGE `id` `increment_id` INT(12) NOT NULL AUTO_INCREMENT");
} elseif ($res === false) {
echo '[{"finish":"1", "msg":"", "error":"An error appears when adding increment_id user_ip to table misc! '.mysqli_error($db_link).'!"}]';
echo '[{"finish":"1", "msg":"", "error":"An error appears when adding increment_id to table misc! '.mysqli_error($db_link).'!"}]';
mysqli_close($db_link);
exit();
}
Expand Down
4 changes: 2 additions & 2 deletions sources/main.functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,7 @@ function getFileExtension(string $file)
* @param string $type What clean to perform
* @return string
*/
function cleanText(string $string, string $type = null)
function cleanText(string $string, $type = null)
{
global $SETTINGS;

Expand All @@ -2238,7 +2238,7 @@ function cleanText(string $string, string $type = null)
if ($type === "css") {
// Escape text and quotes in UTF8 format
return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8');
} elseif ($type === "html" || empty($type) === true) {
} elseif (empty($type) === true || is_null($type) === true || $type === "html") {
// Html cleaner
return $antiXss->xss_clean($string);
}
Expand Down

0 comments on commit 10f7d05

Please sign in to comment.