55 Commits
Author SHA1 Message Date
ArsenShnurkov f0c0c2b246 fix for https://bugzilla.xamarin.com/show_bug.cgi?id=36724 2015-12-09 20:58:00 +03:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Marek Habersack 104d165458 - Added VS2008 projects to compile test assemblies
- All resources are named the same on .NET and Mono for test assemblies
- Prepared SystemWebTestShim to work on .NET (to the extent it is possible)
- System.Web.Util made public when compiling tests in VS2008

svn path=/trunk/mcs/; revision=143511
2009-10-06 14:12:28 +00:00
Gonzalo Paniagua Javier d35d703d77 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: use Replace (char, char).


svn path=/trunk/mcs/; revision=122109
2008-12-25 07:27:33 +00:00
Marek Habersack caa649ae51 2008-08-19 Marek Habersack <[email protected]>
* UrlUtils.cs: fail gracefully if the path passed to GetSessionId
	is null.

svn path=/trunk/mcs/; revision=110932
2008-08-19 10:34:46 +00:00
Marek Habersack 2a10f9ae73 2008-07-29 Marek Habersack <[email protected]>
* SessionStateModule.cs: use Request.FilePath instead of
	Request.BaseVirtualDirectory to retrieve the cookie-less session
	identifier. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* UrlUtils.cs: fixed a typo in HasSessionId which made it always
	return False. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: use Request.FilePath instead of
	Request.BaseVirtualDirectory to retrieve the cookie-less session
	identifier. Fixes bug #397418

2008-07-29  Marek Habersack  <[email protected]>

	* HttpRequest.cs: if the FilePath contains embedded cookie-less
	session identifier, remove it before computing the base virtual
	directory. Fixes bug #397418



svn path=/trunk/mcs/; revision=109156
2008-07-29 13:01:55 +00:00
Marek Habersack c2b252087c 2008-06-16 Marek Habersack <[email protected]>
* UrlUtils.cs: optimize string usage (do not compare against "").

2008-06-16  Marek Habersack  <[email protected]>

	* UrlUtilsTest.cs: those tests can be ran only under the 2.0
	runtime (System.Web.Util.UrlUtils is an internal class)

svn path=/trunk/mcs/; revision=105899
2008-06-16 12:36:56 +00:00
Noam Lampert 11db989266 UrlUtils.cs: Fixed some bugs in Canonize method. Add several tests
svn path=/trunk/mcs/; revision=105894
2008-06-16 11:52:01 +00:00
Marek Habersack ae00a7ec53 2008-06-04 Marek Habersack <[email protected]>
* SessionStateModule.cs: set the application modifier path to bare
	session id.

2008-06-04  Marek Habersack  <[email protected]>

	* UrlUtils.cs: added internal method HasSessionId

2008-06-04  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: set application path modifier string to
	the bare session ID.

2008-06-04  Marek Habersack  <[email protected]>

	* HttpResponse.cs: correctly modify virtual path to include the
	session ID in cookieless session mode. Fixes bug #396628.

svn path=/trunk/mcs/; revision=104861
2008-06-04 13:13:09 +00:00
Vladimir Krasnov 99d17a8d3b * UrlUtils.cs: optimized string.Replace in RemoveDoubleSlashes
svn path=/trunk/mcs/; revision=84392
2007-08-19 12:53:58 +00:00
Marek Habersack 988df7eff0 2007-03-18 Marek Habersack <[email protected]>
* UrlUtils.cs: GetDirectory always returns a path with trailing
	slash.

2007-03-18  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: fix the GetConfigFromFileName
	directory logic.

2007-03-18  Marek Habersack  <[email protected]>

	* BaseParser.cs: fix BaseVirtualDir to always return app-absolute
	paths.

svn path=/trunk/mcs/; revision=74574
2007-03-18 22:12:53 +00:00
Marek Habersack 7972533c5d Fix for the test suite, a temporary reversal of previous patches, since it isn't a real fix - the breakage is elsewhere in system.web
svn path=/trunk/mcs/; revision=74546
2007-03-18 00:16:39 +00:00
Marek Habersack 1ff45bbb84 2007-03-16 Marek Habersack <[email protected]>
* UrlUtils.cs: make sure the trailing slash is present.

svn path=/trunk/mcs/; revision=74465
2007-03-16 14:13:46 +00:00
Marek Habersack c4799d34fb make themes work. Also fixes bug #80953
svn path=/trunk/mcs/; revision=73707
2007-03-05 13:58:16 +00:00
Adar Wesley 0ec8702c71 2007-01-30 Adar Wesley <[email protected]>
* VirtualPathUtility.cs: fixed exceptions thrown from Combine
        so they are compatible with MS.

        * UrlUtils.cs: fixed GetFile to throw right exception


svn path=/trunk/mcs/; revision=71966
2007-01-30 14:59:58 +00:00
Igor Zelmanovich fe810004df 2006-12-12 Igor Zelmanovich <[email protected]>
* VirtualPathUtility.cs: fixed: Combine(), ToAbsolute() methods.

svn path=/trunk/mcs/; revision=69398
2006-12-12 14:14:34 +00:00
Gonzalo Paniagua Javier f905f7c51f 2006-01-31 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: more than one consecutive slash are turned into one.


svn path=/trunk/mcs/; revision=56368
2006-01-31 22:00:13 +00:00
Gonzalo Paniagua Javier e0f9a64bc8 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fix GetFile to work with '/blah'.


svn path=/trunk/mcs/; revision=50557
2005-09-23 02:59:24 +00:00
Gonzalo Paniagua Javier d5ef4651d6 2005-08-28 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: removed 2 unused methods. IsRelativeUrl returns false if
	there's a colon in the string, assuming it's the beginning of the ://
	after the schema.


svn path=/trunk/mcs/; revision=49044
2005-08-28 23:40:12 +00:00
Gonzalo Paniagua Javier 26809a41a1 Add
svn path=/trunk/mcs/; revision=48928
2005-08-26 22:34:28 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Gonzalo Paniagua Javier 240e0c46e3 2005-06-26 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: (Combine) if the base path is "~", expand it.


svn path=/trunk/mcs/; revision=46533
2005-06-27 03:58:36 +00:00
Ben Maurer 3e1c677747 2005-05-09 Ben Maurer <[email protected]>
* UrlUtils.cs (Reduce): a more efficient impl that avoids an
	arraylist, making an arraylist into an array, and a replace
	operation.


svn path=/trunk/mcs/; revision=44292
2005-05-09 18:14:15 +00:00
Gonzalo Paniagua Javier 6b02b28598 2004-11-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.SessionState/SessionStateModule.cs: set the path modifier
	when using cookie-less sessions.

	* System.Web/HttpResponse.cs: fixed ApplyAppPathModifier to insert the
	session ID.
	* System.Web.UI/Control.cs: fixed ResolveUrl for relative URLs when
	using cookie-less sessions.

	* System.Web.Util/UrlUtils.cs: made (Insert|Get|Remove)SessionId use
	the appRoot + SessionID + vpath format.

	Fixes the 3 issues reported in bug #66623.


svn path=/trunk/mcs/; revision=36818
2004-11-30 06:33:56 +00:00
Gonzalo Paniagua Javier 1dfdef5631 hit ]
svn path=/trunk/mcs/; revision=31318
2004-07-20 17:49:09 +00:00
Gonzalo Paniagua Javier 7006de857a 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: don't pass double slash when the path begins with a
	tilde. Fixes bug #61654.

svn path=/trunk/mcs/; revision=31317
2004-07-20 17:42:16 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier d1177f0843 fixed 59051
svn path=/trunk/mcs/; revision=28117
2004-05-26 02:51:47 +00:00
Gonzalo Paniagua Javier 2068a5adf9 Details...
svn path=/trunk/mcs/; revision=28112
2004-05-26 01:09:55 +00:00
Gonzalo Paniagua Javier 05400a27d7 2004-05-26 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs:
	(GetFile): not public, and fixed to really return just the file name.
	(InsertSessionId): ensure that the directory ends with a "/". This
	fixes cookieless sessions.

svn path=/trunk/mcs/; revision=28109
2004-05-26 01:05:43 +00:00
Gonzalo Paniagua Javier 5c8ad0fda3 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: respect trailing slashes. Fixes bug #56802.

svn path=/trunk/mcs/; revision=27323
2004-05-14 00:22:16 +00:00
Gonzalo Paniagua Javier 0dfe2b3696 2004-05-14 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: no more ^Ms.

svn path=/trunk/mcs/; revision=27322
2004-05-14 00:16:00 +00:00
Gonzalo Paniagua Javier e707ebe894 2004-04-24 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: MakeRelative was returning null for virtual paths without
	directory.

svn path=/trunk/mcs/; revision=25918
2004-04-24 03:46:04 +00:00
Gonzalo Paniagua Javier 7a98da2455 2004-04-19 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fixed MakeRelative. nGallery goes one step further.

svn path=/trunk/mcs/; revision=25671
2004-04-18 22:01:21 +00:00
Gonzalo Paniagua Javier 5447d87bd4 forgot this from George's patch
svn path=/trunk/mcs/; revision=24351
2004-03-19 21:33:44 +00:00
Gonzalo Paniagua Javier a8d0b784b0 2004-03-19 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: small fix from George Kodinov for Combine when ~ is used.

svn path=/trunk/mcs/; revision=24340
2004-03-19 18:28:19 +00:00
Gonzalo Paniagua Javier e8e268bd79 2004-02-18 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: ~ is not always /. Fixed.

svn path=/trunk/mcs/; revision=23208
2004-02-18 14:09:55 +00:00
Gonzalo Paniagua Javier 699158873b 2004-02-17 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs:
	(Combine): handle subdirectories and tilde. Fixes bug 54231.

svn path=/trunk/mcs/; revision=23155
2004-02-17 02:48:58 +00:00
Alon Gazit 03e04c7d38 fix little error in GetDirectory().
svn path=/trunk/mcs/; revision=22668
2004-02-01 12:09:26 +00:00
Gonzalo Paniagua Javier 5c91f3bc8c 2004-01-09 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: make reduce not to throw an exception for '../'. Fixes
	bug #52599.

svn path=/trunk/mcs/; revision=21860
2004-01-08 23:05:58 +00:00
Alon Gazit e5544bf0e6 undo to the change that i made few hours ago.
the problem is in HyperLink.
sorry for my mistake.

svn path=/trunk/mcs/; revision=21552
2003-12-30 11:49:22 +00:00
Alon Gazit 1e9c997a3d fix typo in IsRelativeUrl().
fix cases when the path is absolute path like "www.go-mono.com".

svn path=/trunk/mcs/; revision=21549
2003-12-30 10:12:16 +00:00
Jackson Harper ad391da46e * UrlUtils.cs: Some methods for working with session ids in
urls.

svn path=/trunk/mcs/; revision=20757
2003-12-04 05:43:27 +00:00
Gonzalo Paniagua Javier 854682ab6f 2003-12-01 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: don't forget basePath when relative path is not rooted.
	Fixes bug #51522.

svn path=/trunk/mcs/; revision=20641
2003-11-30 23:32:23 +00:00
Gonzalo Paniagua Javier 82619b57c4 2003-11-27 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fix bug introduced with last change that makes relative
	paths fail. Closes bug #51448.

svn path=/trunk/mcs/; revision=20548
2003-11-27 19:24:34 +00:00
Gonzalo Paniagua Javier c413e40c06 2003-11-27 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: fixed Combine() handling of ~.

svn path=/trunk/mcs/; revision=20516
2003-11-27 04:10:04 +00:00
Ben Maurer 8d985b1909 2003-11-08 Ben Maurer <[email protected]>
* UrlUtils.cs: new function to do the app mapping, but make
	it return a physical path.

2003-11-08 Ben Maurer  <[email protected]>

	* SiteMap.cs (Init): implement a hack that doesnt need the config
	stuff. Should do that later.
	* SiteMapNodeCollection (OnValidate): Fix recursion.
	* SiteMapProvider.cs: We dont implement some culture stuff work
	around it. Fix typo.
	* XmlSiteMapProvider.cs: Added.

svn path=/trunk/mcs/; revision=19749
2003-11-09 00:48:37 +00:00
Ben Maurer 0fccff8c39 2003-11-07 Ben Maurer <[email protected]>
* IHierarchicalEnumerable.cs:
	* IHierarchyData.cs:
	* INavigateUIData.cs: New v2 interfaces.

2003-11-07 Ben Maurer  <[email protected]>

	* ISiteMapProvider.cs:
	* SiteMap.cs:
	* SiteMapNode.cs:
	* SiteMapNodeCollection.cs:
	* SiteMapProvider.cs:
	* SiteMapProviderCollection.cs: V2 sitemap related stuff.

2003-11-07 Ben Maurer  <[email protected]>

	* UrlUtils.cs: add a new function for mapping app absolute
	paths to virual paths (ie, ~/blah/ to /application/root/blah/)

svn path=/trunk/mcs/; revision=19728
2003-11-08 04:48:47 +00:00
Gonzalo Paniagua Javier c5d0c4f249 2003-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: when the request is completed or an
	error happens, execute all the delegates attached to EndRequest, not
	only the last one. This makes xsp/test/authtest work again.

	* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
	status code.

	* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
	status code.

	* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.

svn path=/trunk/mcs/; revision=17655
2003-08-27 08:12:52 +00:00
Gonzalo Paniagua Javier bdb911a7f2 2003-05-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
	* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
	* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
	Take care of the exception teh may be throw by MapPath on an invalid
	path.

	* System.Web.UI/TemplateParser.cs: removed unused method.
	* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
	the same, but this one is better.
	* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.

svn path=/trunk/mcs/; revision=14566
2003-05-14 09:07:11 +00:00