Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod: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>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1402:    RequestID nid = id;    while( nid->misc->orig )    nid = id->misc->orig;       string section = RXML.get_var("section", "var");    string query = nid->query;    if( !query )    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||"")+    "?"+query+"#"+path(),    ]);    if( nid->misc->defines )    nid->misc->defines[ " _error" ] = 302;    else if( id->misc->defines )    id->misc->defines[ " _error" ] = 302;    }