opless / phpliteadmin

Automatically exported from code.google.com/p/phpliteadmin
0 stars 0 forks source link

Offering wrong filename for dump #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I tried to export table, filename 
"../../databases/test.db.tbl.6-7-11.dump" was offered for dump
http://www.imageup.ru/img165/2011-06-07-225939_1017x669_scrot675766.png
(I suppose it is $directory + database_name + table_name + something)

After I press "Export", OS window appeared with wrong filename 
".._.._databases_test.db.tbl.6-7-11.dump"
http://www.imageup.ru/img165/2011-06-07-225819_502x359_scrot675773.png
(slashes replaced with underscores with dots :-) )

After pressing "Save" in that window, in next OS window the same offered 
filename in the top.
http://www.imageup.ru/img165/2011-06-07-225825_842x808_scrot675784.png

Original issue reported on code.google.com by owl.brai...@gmail.com on 7 Jun 2011 at 7:13

GoogleCodeExporter commented 9 years ago
That is because slashes are not valid characters for filenames, so I replace 
them with underscores. Thoughts?

Original comment by daneirac...@gmail.com on 7 Jun 2011 at 8:53

GoogleCodeExporter commented 9 years ago
You offer full filename with path! It is cause of such wrong name like 
".._.._lala.tbl.sql". Does anybody name his file like that? NO. So, why full 
path? 

You should offer just filename like "lala.tbl.sql". Path, where to save file, 
user defines by himself with aid of OS "save dialog" that opens later.

Original comment by owl.brai...@gmail.com on 7 Jun 2011 at 10:30

GoogleCodeExporter commented 9 years ago
This has been fixed in v1.8.7. The export filename now does not include the 
path from the server.

Original comment by daneirac...@gmail.com on 8 Jun 2011 at 12:21