diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-10-30 11:06:15 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-10-30 11:06:15 +0000 |
| commit | 3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb (patch) | |
| tree | 0d0c86a7df2af32f923f875c981937116898a042 /login_register.php | |
| parent | bb9380f78cc1136cca02e80e13a1e4f976f846fa (diff) | |
| download | webtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.tar.gz webtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.tar.bz2 webtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.zip | |
#663955. Be explicit about which sorts of URL to generate: '&' for ones in html, and '&' for ones in HTTP headers and between WT_JS_START/WT_JS_END markers. Get rid of "encode_url()" function, which attempted to "magically" fix problems with the wrong URL style.
Diffstat (limited to 'login_register.php')
| -rw-r--r-- | login_register.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login_register.php b/login_register.php index 7e9581ef3a..f024ba8229 100644 --- a/login_register.php +++ b/login_register.php @@ -314,7 +314,7 @@ switch ($action) { //-- check referer for possible spam attack if (!isset($_SERVER['HTTP_REFERER']) || stristr($_SERVER['HTTP_REFERER'],"login_register.php")===false) { - print "<center><br /><span class=\"error\">Invalid page referer.</span>\n"; + print "<center><br /><span class=\"error\">Invalid page referer.</span>"; print "<br /><br /></center>"; AddToLog('Invalid page referer while trying to register a user. Possible spam attack.', 'auth'); exit; @@ -547,7 +547,7 @@ switch ($action) { break; default : - header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.encode_url($url)); + header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.$url); break; } |
