Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (23 sloc) 0.891 kb
811877e @klacke ""
authored
1
2 Index: yaws_api.erl
3 ===================================================================
4 RCS file: /cvsroot/erlyaws/yaws/src/yaws_api.erl,v
5 retrieving revision 1.126
6 retrieving revision 1.128
7 diff -u -b -r1.126 -r1.128
8 --- yaws_api.erl 16 May 2005 21:12:03 -0000 1.126
9 +++ yaws_api.erl 16 Jun 2005 11:36:57 -0000 1.128
10 @@ -741,11 +741,14 @@
7811247 @vinoski whitespace cleanup
vinoski authored
11
811877e @klacke ""
authored
12 url_decode_q_split([$%, Hi, Lo | Tail], Ack) ->
13 Hex = yaws:hex_to_integer([Hi, Lo]),
14 + if Hex == 0 -> exit(badurl);
15 + true -> ok
16 + end,
17 url_decode_q_split(Tail, [Hex|Ack]);
18 url_decode_q_split([$?|T], Ack) ->
19 %% Don't decode the query string here, that is parsed separately.
20 {path_norm_reverse(Ack), T};
21 -url_decode_q_split([H|T], Ack) ->
7811247 @vinoski whitespace cleanup
vinoski authored
22 +url_decode_q_split([H|T], Ack) when H /= 0 ->
811877e @klacke ""
authored
23 url_decode_q_split(T, [H|Ack]);
24 url_decode_q_split([], Ack) ->
25 {path_norm_reverse(Ack), []}.
26
Something went wrong with that request. Please try again.