Added urlencode() to values, becuase the title and url contains spaces and other odd charaters

This commit is contained in:
jengo 2001-02-04 10:18:47 +00:00
parent 349b11a41c
commit 286b7327c3
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
if ($phpgw_forward) { if ($phpgw_forward) {
while (list($name,$value) = each($HTTP_GET_VARS)) { while (list($name,$value) = each($HTTP_GET_VARS)) {
if (ereg("phpgw_",$name)) { if (ereg("phpgw_",$name)) {
$extra_vars .= "&" . $name . "=$value"; $extra_vars .= "&" . $name . "=" . urlencode($value);
} }
} }
} }

View File

@ -111,7 +111,7 @@
if ($phpgw_forward) { if ($phpgw_forward) {
while (list($name,$value) = each($HTTP_GET_VARS)) { while (list($name,$value) = each($HTTP_GET_VARS)) {
if (ereg("phpgw_",$name)) { if (ereg("phpgw_",$name)) {
$extra_vars .= "&" . $name . "=$value"; $extra_vars .= "&" . $name . "=" . urlencode($value);
} }
} }
} }
@ -162,7 +162,7 @@
while (list($name,$value) = each($HTTP_GET_VARS)) { while (list($name,$value) = each($HTTP_GET_VARS)) {
if (ereg("phpgw_",$name)) { if (ereg("phpgw_",$name)) {
$extra_vars .= "&" . $name . "=$value"; $extra_vars .= "&" . $name . "=" . urlencode($value);
} }
} }
if ($extra_vars) { if ($extra_vars) {