mirror of
https://github.com/filegator/filegator.git
synced 2025-08-19 04:21:30 +02:00
fix for filename sanitize/cut
This commit is contained in:
@@ -157,5 +157,12 @@ class TmpfsTest extends TestCase
|
||||
|
||||
// with invalid chars
|
||||
$this->assertEquals('..--s-u---pe----rm---an-.t-xt..--', $this->invokeMethod($this->service, 'sanitizeFilename', ["../\\s\"u<:>pe////rm?*|an\\.t\txt../;"]));
|
||||
|
||||
// oversized
|
||||
$this->assertEquals(
|
||||
'123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345',
|
||||
$this->invokeMethod($this->service, 'sanitizeFilename', [
|
||||
'1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456'
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user