mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-03-02 08:31:21 +01:00
URL encode filename in API due to new file boards which allow filenames that are not just numbers.
This commit is contained in:
parent
62e491a1e4
commit
b02442ff22
@ -92,7 +92,7 @@ class Api {
|
||||
$apiPost['filename'] = @substr($file->name, 0, strrpos($file->name, '.'));
|
||||
$dotPos = strrpos($file->file, '.');
|
||||
$apiPost['ext'] = substr($file->file, $dotPos);
|
||||
$apiPost['tim'] = substr($file->file, 0, $dotPos);
|
||||
$apiPost['tim'] = urlencode(substr($file->file, 0, $dotPos));
|
||||
if (isset($file->hash))
|
||||
$apiPost['md5'] = base64_encode(hex2bin($file->hash));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user