mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Use ===
This commit is contained in:
parent
e17b3539eb
commit
7bc98e8852
@ -65,7 +65,7 @@ function gen_name($arg, $in){
|
|||||||
|
|
||||||
//Verify that the extension is allowed
|
//Verify that the extension is allowed
|
||||||
function verify_extension($ext, $type){
|
function verify_extension($ext, $type){
|
||||||
if(CONFIG_EXTENSION_BLOCKING_MODE == "WHITELIST") {
|
if(CONFIG_EXTENSION_BLOCKING_MODE === "WHITELIST") {
|
||||||
$allowed = in_array($ext, unserialize(CONFIG_ALLOWED_EXTENSIONS));
|
$allowed = in_array($ext, unserialize(CONFIG_ALLOWED_EXTENSIONS));
|
||||||
}else{
|
}else{
|
||||||
$allowed = !in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS));
|
$allowed = !in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS));
|
||||||
|
Loading…
Reference in New Issue
Block a user