Skip to content

Commit

Permalink
Fix bad URL handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alfille committed Mar 20, 2015
1 parent dc7169f commit d84d00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/owhttpd/src/c/owhttpd_handler.c
Expand Up @@ -70,7 +70,7 @@ int handle_socket(FILE * out)
SAFESTRING(up.cmd), SAFESTRING(up.file), SAFESTRING(up.request), SAFESTRING(up.value), SAFESTRING(up.version)
);

oc->base_url = owstrdup( up.file ) ;
oc->base_url = owstrdup( up.file==NULL ? "" : up.file ) ;

if ( BAD( GetHostURL(oc) ) ) {
// No command line in request
Expand Down

0 comments on commit d84d00b

Please sign in to comment.