mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
fix signature on custom basedir
This commit is contained in:
parent
91c6ef1ddf
commit
3fb30f6391
@ -36,8 +36,14 @@ if(0 === strpos($uri, '/')) {
|
|||||||
$uri = str_replace_first('/', '', $uri);
|
$uri = str_replace_first('/', '', $uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preg_match("/^[A-Za-z0-9-_%'+]+\.png$/i", $uri)) {
|
if(preg_match("/^[A-Za-z0-9-_%'+\/]+\.png$/i", $uri)) {
|
||||||
|
if (!empty(BASE_DIR)) {
|
||||||
|
$tmp = explode('.', str_replace_first(str_replace_first('/', '', BASE_DIR) . '/', '', $uri));
|
||||||
|
}
|
||||||
|
else {
|
||||||
$tmp = explode('.', $uri);
|
$tmp = explode('.', $uri);
|
||||||
|
}
|
||||||
|
|
||||||
$_REQUEST['name'] = urldecode($tmp[0]);
|
$_REQUEST['name'] = urldecode($tmp[0]);
|
||||||
|
|
||||||
chdir(TOOLS . 'signature');
|
chdir(TOOLS . 'signature');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user