File tree Expand file tree Collapse file tree 6 files changed +206
-211
lines changed
Expand file tree Collapse file tree 6 files changed +206
-211
lines changed Original file line number Diff line number Diff line change 9292// You can specify all the values or you can default the Revision and Build Numbers
9393// by using the '*' as shown below:
9494
95- [ assembly: AssemblyVersion ( "21.12.6.1" ) ] // do not remove the blanks!!!!
95+ [ assembly: AssemblyVersion ( AjaxPro . Constant . AssemblyVersion ) ]
9696
9797//
9898// In order to sign your assembly you must specify a key to use. Refer to the
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public void ProcessRequest(HttpContext context)
105105 context . Response . Cache . SetLastModified ( lastMod ) ;
106106
107107 context . Response . Write ( @"//--------------------------------------------------------------
108- // Copyright (C) 2006 Michael Schwarz (http://www.ajaxpro.info).
108+ // Copyright (C) 2021 Michael Schwarz (http://www.ajaxpro.info).
109109// All rights reserved.
110110//--------------------------------------------------------------
111111// Converter.js
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public void ProcessRequest(HttpContext context)
116116 context . Response . Cache . SetLastModified ( lastMod ) ;
117117
118118 context . Response . Write ( @"//--------------------------------------------------------------
119- // Copyright (C) 2006 Michael Schwarz (http://www.ajaxpro.info).
119+ // Copyright (C) 2021 Michael Schwarz (http://www.ajaxpro.info).
120120// All rights reserved.
121121//--------------------------------------------------------------
122122
@@ -138,15 +138,17 @@ public void ProcessRequest(HttpContext context)
138138
139139 if ( s != null )
140140 {
141- System . IO . StreamReader sr = new System . IO . StreamReader ( s ) ;
141+ string content = "" ;
142142
143- context . Response . Write ( "// " + files [ i ] + ".js\r \n " ) ;
143+ using ( System . IO . StreamReader sr = new System . IO . StreamReader ( s ) )
144+ {
145+ content = sr . ReadToEnd ( ) ;
146+ }
144147
145- context . Response . Write ( sr . ReadToEnd ( ) ) ;
148+ context . Response . Write ( "// " + files [ i ] + ".js\r \n " ) ;
149+ context . Response . Write ( content . Replace ( "{AssemblyVersion}" , Constant . AssemblyVersion ) ) ;
146150 context . Response . Write ( "\r \n " ) ;
147151
148- sr . Close ( ) ;
149-
150152 if ( files [ i ] == "prototype" && AjaxPro . Utility . Settings . OldStyle . Contains ( "objectExtendPrototype" ) )
151153 {
152154 context . Response . Write ( @"
Original file line number Diff line number Diff line change @@ -161,13 +161,8 @@ public void ProcessRequest(HttpContext context)
161161 // Build the javascript source and save it to the current
162162 // Application context.
163163
164-
165164 string url = context . Request . ApplicationPath + ( context . Request . ApplicationPath . EndsWith ( "/" ) ? "" : "/" ) + Utility . HandlerPath + "/" + AjaxPro . Utility . GetSessionUri ( ) + path + Utility . HandlerExtension ;
166165
167-
168-
169-
170-
171166 // find all methods that are able to be used with AjaxPro
172167
173168 MethodInfo [ ] mi = type . GetMethods ( ) ;
Original file line number Diff line number Diff line change @@ -52,6 +52,6 @@ public sealed class Constant
5252 /// <summary>
5353 /// The assembly version.
5454 /// </summary>
55- public const string AssemblyVersion = "21.10.27 .1" ;
55+ public const string AssemblyVersion = "21.12.8 .1" ;
5656 }
5757}
You can’t perform that action at this time.
0 commit comments