Scusa avevi ragione... ero io che ho gurdato una versione precedente.
Comunque hai due modi per risolvere:
1- quello corretto poichè segue lo standard stabilito dal W3C e cioè usare come separatore dei campi GET ";" invece di "&", ad esempio:
index.php?id=10;pag=2
invece di:
index.php?id=10&pag=2
se il tuo server è settato correttamente non avrai problemi.
2- se ciò non possibile modifica il seguente codice:
in questo modo:codice:sub return_html { # Local variables used in this subroutine initialized. # local($key,$sort_order,$sorted_field); # Now that we have finished using form values for any e-mail related # # reasons, we will convert all of the form fields and config values # # to remove any cross-site scripting security holes. # local($field); foreach $field (keys %Config) { $safeConfig{$field} = &clean_html($Config{$field}); } foreach $field (keys %Form) { $Form{$field} = &clean_html($Form{$field}); } # If redirect option is used, print the redirectional location header. # if ($Config{'redirect'}) { print "Location: $safeConfig{'redirect'}\n\n"; }
codice:sub return_html { # Local variables used in this subroutine initialized. # local($key,$sort_order,$sorted_field); # Now that we have finished using form values for any e-mail related # # reasons, we will convert all of the form fields and config values # # to remove any cross-site scripting security holes. # local($field); foreach $field (keys %Config) { next if ($field eq "redirect"); $safeConfig{$field} = &clean_html($Config{$field}); } foreach $field (keys %Form) { $Form{$field} = &clean_html($Form{$field}); } # If redirect option is used, print the redirectional location header. # if ($Config{'redirect'}) { print "Location: $safeConfig{'redirect'}\n\n"; }

Rispondi quotando