Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2008-12-11
2008-12-11 17:17:43 by Jonas Wallden <jonasw@roxen.com>
b0a36ccf421726acac4437a309aa1894fdec4129 (
14
lines) (+
8
/-
6
)
[
Show
|
Annotate
]
Branch:
5.2
Allow empty MyWorldLocation.
Rev: server/base_server/module.pike:1.234
1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2004, Roxen IS.
-
// $Id: module.pike,v 1.
233
2008/12/11
15
:
32
:
28
jonasw Exp $
+
// $Id: module.pike,v 1.
234
2008/12/11
17
:
17
:
43
jonasw Exp $
#include <module_constants.h> #include <module.h>
276:
error("Please do not call this function from create()!\n"); array(string) urls = copy_value(_my_configuration->query("URLs")); string hostname;
-
if (string world_url = _my_configuration->query ("MyWorldLocation")) {
+
if (string world_url = _my_configuration->query ("MyWorldLocation"))
+
if (sizeof(world_url))
{
Standards.URI uri = Standards.URI(world_url); hostname = uri->host; }
307:
error("Please do not call this function from create()!\n"); string hostname; string world_url = _my_configuration->query("MyWorldLocation");
-
if (world_url) {
+
if (world_url
&& sizeof(world_url
)
)
{
Standards.URI uri = Standards.URI(world_url); hostname = uri->host; }