Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokujo committed Feb 9, 2022
1 parent 6a9509e commit 87609dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version" : "4.6",
"version" : "4.6.1",
"name" : "DLE FavAll",
"dle" : "14.x",
"dle" : "14.x, 15.x",
"author" : [
"d0gmatist",
"MaHarder",
Expand Down
10 changes: 6 additions & 4 deletions upload/engine/ajax/favall/favall_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
if ($json["success"] == true) {
$bad_words = explode("|~|", $favall_config["bad_words"]);
foreach ($bad_words as $i) {
if (preg_match("/" . $i . "/i", $fav_name)) {
$json["success"] = false;
$json["result"] = "Поле \"Имя\" содержит не допустимое слово.";
}
if(!empty($i)) {
if (preg_match("/{$i}/i", $fav_name)) {
$json["success"] = false;
$json["result"] = "Поле \"Имя\" содержит не допустимое слово.";
}
}
}
}
if ($json["success"] == true && preg_match("/[\\||\\'|\\<|\\>|\\[|\\]|\"|\\!|\\?|\$|\\@|\\/|\\\\|\\&\\~\\*\\{\\+\\,\\.]/", $fav_name)) {
Expand Down
2 changes: 1 addition & 1 deletion upload/engine/inc/favall.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ function get_active($var) {
if ( $_POST) {
$favall_con = $_POST['favall_con'];
if ( $favall_config ) {
$favall_con = $favall_con + $favall_config;
$favall_con = array_merge_recursive($favall_config, $favall_con);

}

Expand Down

0 comments on commit 87609dc

Please sign in to comment.