Bug 83065: Only send leaf file name instead of full path on file upload, r=havill@redhat.com/pollmann@netscape.com, sr=mscott@netscape.com, a=drivers@mozilla.org

This commit is contained in:
pollmann%netscape.com 2001-06-20 02:00:54 +00:00
Родитель 40c6f1e3c1
Коммит 664d9dc77a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -111,7 +111,7 @@ protected:
nsresult ProcessValue(nsIFormProcessor& aFormProcessor, nsIFormControlFrame* aFrameControl, const nsString& aName, nsString& aNewValue); nsresult ProcessValue(nsIFormProcessor& aFormProcessor, nsIFormControlFrame* aFrameControl, const nsString& aName, nsString& aNewValue);
nsresult ProcessAsURLEncoded(nsIFormProcessor* aFormProcessor, PRBool aIsPost, nsString& aData, nsIFormControlFrame* aFrame); nsresult ProcessAsURLEncoded(nsIFormProcessor* aFormProcessor, PRBool aIsPost, nsString& aData, nsIFormControlFrame* aFrame);
nsresult ProcessAsMultipart(nsIFormProcessor* aFormProcessor, nsIFileSpec*& aMultipartDataFile, nsIFormControlFrame* aFrame); nsresult ProcessAsMultipart(nsIFormProcessor* aFormProcessor, nsIFileSpec*& aMultipartDataFile, nsIFormControlFrame* aFrame);
static const char* GetFileNameWithinPath(char* aPathName); PRUint32 GetFileNameWithinPath(nsString aPathName);
nsresult GetContentType(char* aPathName, char** aContentType); nsresult GetContentType(char* aPathName, char** aContentType);
// i18n helper routines // i18n helper routines