Branch: Tag:

2003-10-23

2003-10-23 15:25:32 by 0

Fix for [bug 2147 (#2147)] where submit buttons in the Ports widget (and possibly
others) generate empty pages in the administration interface.

Rev: server/etc/modules/Variable.pmod/Mapping.pike:1.7
Rev: server/etc/modules/Variable.pmod/module.pmod:1.82

1: - // $Id: module.pmod,v 1.81 2003/03/05 12:44:20 mattias Exp $ + // $Id: module.pmod,v 1.82 2003/10/23 15:25:32 jonasw Exp $      #include <module.h>   #include <roxen.h>
1409:    query = "";    else    query += "&"; -  query += "random="+random(4949494)+(section?"&section="+section:""); +     -  +  // The URL will get a fragment identifier below and since some +  // broken browsers (MSIE) incorrectly includes the fragment in +  // the last variable value we'll place section before random. +  query += +  (section ? ("section=" + section + "&") : "") + +  "random=" + random(4949494); +     nid->misc->moreheads =    ([    "Location":nid->not_query+(nid->misc->path_info||"")+