From 664d9dc77a5cd4ae83f730d88cc9e10b6ba5932f Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Wed, 20 Jun 2001 02:00:54 +0000 Subject: [PATCH] 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 --- layout/html/forms/src/nsFormFrame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/html/forms/src/nsFormFrame.h b/layout/html/forms/src/nsFormFrame.h index 99181a2f28c..32e54eaf24a 100644 --- a/layout/html/forms/src/nsFormFrame.h +++ b/layout/html/forms/src/nsFormFrame.h @@ -111,7 +111,7 @@ protected: nsresult ProcessValue(nsIFormProcessor& aFormProcessor, nsIFormControlFrame* aFrameControl, const nsString& aName, nsString& aNewValue); nsresult ProcessAsURLEncoded(nsIFormProcessor* aFormProcessor, PRBool aIsPost, nsString& aData, 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); // i18n helper routines