mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 21:21:06 -04:00
Fix a bug where if the file name is composed of entirely illegal
characters, we'll get an empty slug. Partial fix for #1086.
This commit is contained in:
@@ -324,6 +324,12 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
|
||||
$album->save();
|
||||
}
|
||||
|
||||
public function name_with_only_invalid_chars_is_still_valid_test() {
|
||||
$album = test::random_album_unsaved();
|
||||
$album->name = "[]";
|
||||
$album->save();
|
||||
}
|
||||
|
||||
public function cant_change_item_type_test() {
|
||||
$photo = test::random_photo();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user