Permalink
Browse files

Revert URIComponentDecode()ing for now, it requires more time and mor…

…e testing.
  • Loading branch information...
1 parent 121560c commit ae768352910c24b3bc825e188020c0a5049367e6 @jedisct1 committed Oct 1, 2010
Showing with 11 additions and 11 deletions.
  1. +2 −2 src/domain_layers.c
  2. +6 −6 src/domain_records.c
  3. +1 −1 src/domain_search.c
  4. +2 −2 src/public.c
View
@@ -41,7 +41,7 @@ int handle_domain_layers(struct evhttp_request * const req,
if (*uri == 0) {
return HTTP_NOTFOUND;
}
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
return HTTP_SERVUNAVAIL;
}
*create_op = (LayersCreateOp) {
@@ -69,7 +69,7 @@ int handle_domain_layers(struct evhttp_request * const req,
if (*uri == 0) {
return HTTP_NOTFOUND;
}
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
return HTTP_SERVUNAVAIL;
}
*delete_op = (LayersDeleteOp) {
View
@@ -132,7 +132,7 @@ int handle_domain_records(struct evhttp_request * const req,
return HTTP_NOTFOUND;
}
*sep = 0;
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
*sep = '/';
return HTTP_SERVUNAVAIL;
}
@@ -141,7 +141,7 @@ int handle_domain_records(struct evhttp_request * const req,
release_key(layer_name);
return HTTP_NOTFOUND;
}
- if ((key = new_key_from_uri_encoded_c_string(sep)) == NULL) {
+ if ((key = new_key_from_c_string(sep)) == NULL) {
release_key(layer_name);
return HTTP_SERVUNAVAIL;
}
@@ -185,15 +185,15 @@ int handle_domain_records(struct evhttp_request * const req,
return HTTP_NOTFOUND;
}
*sep = 0;
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
return HTTP_SERVUNAVAIL;
}
*sep++ = '/';
if (*sep == 0) {
release_key(layer_name);
return HTTP_NOTFOUND;
}
- if ((key = new_key_from_uri_encoded_c_string(sep)) == NULL) {
+ if ((key = new_key_from_c_string(sep)) == NULL) {
release_key(layer_name);
return HTTP_SERVUNAVAIL;
}
@@ -252,15 +252,15 @@ int handle_domain_records(struct evhttp_request * const req,
return HTTP_NOTFOUND;
}
*sep = 0;
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
return HTTP_SERVUNAVAIL;
}
*sep++ = '/';
if (*sep == 0) {
release_key(layer_name);
return HTTP_NOTFOUND;
}
- if ((key = new_key_from_uri_encoded_c_string(sep)) == NULL) {
+ if ((key = new_key_from_c_string(sep)) == NULL) {
release_key(layer_name);
return HTTP_SERVUNAVAIL;
}
View
@@ -114,7 +114,7 @@ int handle_domain_search(struct evhttp_request * const req,
return HTTP_NOTFOUND;
}
*sep = 0;
- if (*uri == 0 || (layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if (*uri == 0 || (layer_name = new_key_from_c_string(uri)) == NULL) {
*sep = '/';
return HTTP_SERVUNAVAIL;
}
View
@@ -63,7 +63,7 @@ int handle_public_request(HttpHandlerContext * const context,
return -1;
}
*sep = 0;
- if ((layer_name = new_key_from_uri_encoded_c_string(uri)) == NULL) {
+ if ((layer_name = new_key_from_c_string(uri)) == NULL) {
*sep = '/';
evhttp_send_error(req, HTTP_SERVUNAVAIL, "Out of memory (layer)");
return -2;
@@ -74,7 +74,7 @@ int handle_public_request(HttpHandlerContext * const context,
evhttp_send_error(req, HTTP_NOTFOUND, "Not Found");
return -1;
}
- if ((key = new_key_from_uri_encoded_c_string(sep)) == NULL) {
+ if ((key = new_key_from_c_string(sep)) == NULL) {
release_key(layer_name);
evhttp_send_error(req, HTTP_SERVUNAVAIL, "Out of memory (key)");
return -2;

0 comments on commit ae76835

Please sign in to comment.