Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(427)

Issue 3279041: Add a regexp to verify the host parameter. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by M-A
Modified:
14 years, 3 months ago
Reviewers:
Andi Albrecht, techtonik, imirkin, Ilia Mirkin
CC:
GvR, codereview-discuss_googlegroups.com
Base URL:
https://rietveld.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add a regexp to verify the host parameter. If the host parameter is invalid, like having a trailing backslash, it will result on HTTP 400 later which is much harder to diagnose.

Patch Set 1 #

Patch Set 2 : Improve regexp to support port number #

Patch Set 3 : Add back support for numeric IP host #

Patch Set 4 : Fix support for dash" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M upload.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11
M-A
14 years, 4 months ago (2010-11-23 16:22:25 UTC) #1
techtonik
Is it possible to improve error message instead of embedding cryptic assertions?
14 years, 4 months ago (2010-11-23 16:33:32 UTC) #2
M-A
I could use ErrorExit() instead, you prefer that?
14 years, 4 months ago (2010-11-23 16:37:36 UTC) #3
techtonik
On 2010/11/23 16:37:36, M-A wrote: > I could use ErrorExit() instead, you prefer that? If ...
14 years, 4 months ago (2010-11-23 17:21:20 UTC) #4
M-A
On 2010/11/23 17:21:20, techtonik wrote: > On 2010/11/23 16:37:36, M-A wrote: > > I could ...
14 years, 4 months ago (2010-11-23 17:36:04 UTC) #5
Ilia Mirkin
On 2010/11/23 17:36:04, M-A wrote: > I think setting up a echo service is overdesigning ...
14 years, 4 months ago (2010-12-05 16:34:17 UTC) #6
M-A
On 2010/12/05 16:34:17, Ilia Mirkin wrote: > On 2010/11/23 17:36:04, M-A wrote: > > I ...
14 years, 4 months ago (2010-12-05 18:31:08 UTC) #7
imirkin_alum.mit.edu
On Sun, Dec 5, 2010 at 1:31 PM, <maruel@chromium.org> wrote: > On 2010/12/05 16:34:17, Ilia ...
14 years, 4 months ago (2010-12-05 18:36:21 UTC) #8
techtonik
On 2010/12/05 18:31:08, M-A wrote: > The error in that case was a trailing slash, ...
14 years, 3 months ago (2010-12-12 00:53:04 UTC) #9
M-A
I'm cancelling this change.
14 years, 3 months ago (2010-12-13 15:33:42 UTC) #10
techtonik
14 years, 3 months ago (2010-12-14 09:33:07 UTC) #11
Ok. I hope it won't discourage from further contributions.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b