Update security.php

This commit is contained in:
Namhyeon Go 2019-05-09 09:30:26 +09:00 committed by GitHub
parent 676da49d98
commit 89ae1eaf41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -571,6 +571,12 @@ if(!check_function_exists("make_safe_argument")) {
}
}
if(!check_function_exists("make_safe_path")) {
function make_safe_path($path) {
return str_replace("../", "", $path);
}
}
// https://stackoverflow.com/questions/14673551/encrypt-decrypt-with-xor-in-php
if(!check_function_exists("get_xor_text")) {
function get_xor_text($key, $string, $debug=false) {