diff --git a/src_sys/com/tenwa/flow/action/comm/FlowController.java b/src_sys/com/tenwa/flow/action/comm/FlowController.java index b1f6c87f3..247288ef4 100644 --- a/src_sys/com/tenwa/flow/action/comm/FlowController.java +++ b/src_sys/com/tenwa/flow/action/comm/FlowController.java @@ -48,6 +48,7 @@ public class FlowController extends HttpServlet { if ( sArgs.indexOf( "CurUserID" ) == -1 ) { sArgs += ",CurUserID=8006U00000001"; } + sArgs += getFixedFlowParam( sArgs ); sArgs = URLDecoder.decode(sArgs, "UTF-8").replace("Ж", "+").replace("ё", "%"); } ASUser CurUser = ASUser.getUser( "8006U00000001", null ); @@ -66,4 +67,20 @@ public class FlowController extends HttpServlet { out.flush(); out.close(); } + + public static String getFixedFlowParam ( String args ) { + StringBuffer fixedFlowParam = new StringBuffer( "{" ); + if ( args != null && args.length() > 0 ) { + String[] argObjects = args.split( "," ); + for ( String obj : argObjects ) { + if ( fixedFlowParam.length() > 1 ) { + fixedFlowParam.append( "," ); + } + fixedFlowParam.append( obj.split( "=" )[0] ) + .append( ":" ).append( obj.split( "=" )[1] ); + } + fixedFlowParam.append( "}" ); + } + return ",FixedFlowParam=" + fixedFlowParam.toString(); + } }