mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Prevent server_add autocomplete from being interpreted as UTF-7. Fixes #1871.
This commit is contained in:
@@ -71,14 +71,13 @@ class Admin_Server_Add_Controller extends Admin_Controller {
|
||||
}
|
||||
|
||||
public function autocomplete() {
|
||||
$directories = array();
|
||||
$directories = array('<meta http-equiv="content-type" content="text/html; charset=utf-8">');
|
||||
$path_prefix = Input::instance()->get("q");
|
||||
foreach (glob("{$path_prefix}*") as $file) {
|
||||
if (is_dir($file) && !is_link($file)) {
|
||||
$directories[] = html::clean($file);
|
||||
}
|
||||
}
|
||||
|
||||
print implode("\n", $directories);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user