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.106 2008/01/29 10:53:51 mathias Exp $ + // $Id: module.pmod,v 1.107 2008/05/09 18:22:47 mast 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:1642:    else    query += "&";       // 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(), -  ]); +  string url = +  Roxen.http_encode_invalids (nid->not_query + +  (nid->misc->path_info || "") + +  "?" + query + "#" + path()); +  +  nid->set_response_header ("Location", url);    if( nid->misc->defines )    nid->misc->defines[ " _error" ] = 302;    else if( id->misc->defines )    id->misc->defines[ " _error" ] = 302;    }       return ret;    }