Hi,
I'm playing with Google App Engine and during my tests it seems that
there is a bug in cgi. parse_header function.
If we upload a file with a semi-colon (i.e : "C:/my;file.jpg") :
cgi.FieldStorag e.filename returns only "my" everything after the semi-
colon is missing
Is it a bug or i'm missing something ?
Regards 3 2636
"Sylvain" <sy************ @gmail.comwrote in message
news:b8******** *************** ***********@25g 2000hsx.googleg roups.com...
If we upload a file with a semi-colon (i.e : "C:/my;file.jpg") :
cgi.FieldStorag e.filename returns only "my" everything after the semi-
colon is missing
Is it a bug or i'm missing something ?
I doubt it's bug in parse_header, since it's meant to split on
semicolons. Whether it's a bug in one of its callers, or the client
not escaping sufficiently, I couldn't say offhand.
On Jun 6, 5:33 pm, "Richard Brodie" <R.Bro...@rl.ac .ukwrote:
"Sylvain" <sylvain.viv... @gmail.comwrote in message
news:b8******** *************** ***********@25g 2000hsx.googleg roups.com...
If we upload a file with a semi-colon (i.e : "C:/my;file.jpg") :
cgi.FieldStorag e.filename returns only "my" everything after the semi-
colon is missing
Is it a bug or i'm missing something ?
I doubt it's bug inparse_header, since it's meant to split on
semicolons. Whether it's a bug in one of its callers, or the client
not escaping sufficiently, I couldn't say offhand.
I've printed the filename in the content-disposition header :
filename="my;fi le.jpg"
If you look at the http://www.ietf.org/rfc/rfc2183.txt about "content-
disposition" :
"A short parameter value containing only ASCII characters, but
including `tspecials' characters, SHOULD be represented as `quoted-
string'."
So my header is correct but i think there is clearly a bug in the
parse_header and "content-disposition" should not be "splitted" only
with the split(';') method but should look at quoted-string too.
Regards
En Sat, 07 Jun 2008 04:49:41 -0300, Sylvain <sy************ @gmail.com>
escribió:
If we upload a file with a semi-colon (i.e : "C:/my;file.jpg") :
cgi.FieldStorag e.filename returns only "my" everything after the semi-
colon is missing
It's a known bug: http://bugs.python.org/issue1540529 - the patch is
waiting for review...
--
Gabriel Genellina This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrey Krivda 232973226 |
last post by:
Hi!
Whether there is an example where is used "Left Anti Semi Join"?
andrey@tic.com.ua
|
by: jhomp ssens |
last post by:
I would like to create a pulldown menu which is
semi-transparent....that is, you can see the text and graphics behind
it when it is pulled down. The effect I'm looking for can be seen at
http://www.countrywide.com. Are there any good tutorials which can
show me how to do this with CSS?
|
by: Kiuhnm |
last post by:
Is there an elegant way to deal with semi-circular definitions?
Semi-circular definition:
A { B };
B { *A };
Circular reference:
A { *B };
B { *A };
The problems arise when there are more semi-circular definitions and
|
by: David Scemama |
last post by:
Hi,
I'm looking for a way to display semi graphic characters in a multi line
text control or in a rich text control.
I've tried with all the characters of the extended ASCII table (code page
437), they appear correctly except the semi graphic ones.
Please help ...
Thanks a lot
|
by: Trond Michelsen |
last post by:
Hi.
I have a transparent PNG-image that I would like to display on top of
the rest of the web page. I've already got this part working. But, I'd
like the background (as in "the part of the image that is transparent"),
to be semi transparent instead. So, I've wrapped the image in a
div-tag with the style "opacity: .70" instead. This gives me pretty
much the semi transparency that I'm looking for, except that this makes
the entire image...
| |
by: James Stroud |
last post by:
Hello All,
I am trying to create a semi-standalone with the vendor python on OS X
10.4 (python 2.3.5). I tried to include some packages with both
--packages from the command and the 'packages' option in setup.py. While
the packages were nicely included in the application bundle in both
cases (at Contents/Resources/lib/python2.3/), they were not found by
python when the program was launched, giving the error:
"ImportError: No module...
|
by: James Arnold |
last post by:
I am trying to use a semi transparent PNG as the form background,
allowing you to see through certain parts. The intention is similar to
a skinnable form like launchy, with semi-transparent pixels (not
just .MakeTransparent or Form.Opacity). Also similar to the Adobe
splash screens which the feather and drop shadow.
By overriding the OnPaint method and manually drawing a PNG onto the
form background I can achieve this effect, but it does...
|
by: JamesF1982 |
last post by:
Hey everyone,
My question is related to HTML, Javascript, CSS and ASP.NET but i think it belongs here!
Upon an event i am trying to add a semi-transparent colour across the page so the background is obscurred but i also set a div with a known ID to exist above this.
My current method has been to on the fly create a div which gets the screen height/width with javascript and then sets the image.
However, my div is created but does not...
|
by: machineghost |
last post by:
First off, let me just say that as someone with no DBA training
whatsoever, any help I can get with this issue will be very, very much
appreciated.
My company recently migrated our database from DB2 v7 to DB2 v9. We
hired a consultant to help us, and things went pretty smoothly ... up
until a few weeks after, when a co-worker tried to insert JavaScript
in to our database. That's when we learned that v9, unlike v7, has a
problem with...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |