Commit 6c7d983a authored by kov@webkit.org's avatar kov@webkit.org

2009-05-13 Stephan Haller <nomad@froevel.de>

        Reviewed by Gustavo Noronha.

        Wrong handling of file upload if no file selected
        https://bugs.webkit.org/show_bug.cgi?id=25649

        Fixed returned path if path is empty

        * WebCore/platform/gtk/FileSystemGtk.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 406d019d
2009-05-13 Stephan Haller <nomad@froevel.de>
Reviewed by Gustavo Noronha.
Wrong handling of file upload if no file selected
https://bugs.webkit.org/show_bug.cgi?id=25649
Fixed returned path if path is empty
* WebCore/platform/gtk/FileSystemGtk.cpp:
2009-05-13 Dan Bernstein <mitz@apple.com>
Reviewed by Dave Hyatt.
......@@ -180,6 +180,9 @@ String homeDirectoryPath()
String pathGetFileName(const String& pathName)
{
if (pathName.isEmpty())
return pathName;
char* tmpFilename = filenameFromString(pathName);
char* baseName = g_path_get_basename(tmpFilename);
String fileName = String::fromUTF8(baseName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment