Permalink
Browse files

only allow dipert.org extURL

  • Loading branch information...
1 parent 04f98e4 commit a0ec9c8d8512f14883d05fb625b36d2b846b02b4 Alan Dipert committed Jan 15, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 request.c
View
@@ -186,8 +186,11 @@ int parseURL(struct extRequest *req) {
if(urlLength > 0) {
req->url = (char*)malloc(sizeof(char)*urlLength);
if(cgiFormString(URL_PARAM_NAME, req->url, urlLength) == cgiFormSuccess) {
- /* Success */
- return_status = 1;
+ //Only make this URL accessible
+ if(strcmp(req->url, "http://dipert.org/alan/calc.php") == 0) {
+ /* Success */
+ return_status = 1;
+ }
} else {
free(req->url);
}

0 comments on commit a0ec9c8

Please sign in to comment.