[Mono-bugs] [Bug 81950][Nor] Changed - Regression: Control.ResolveUrl doesn't handle '~' anymore
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 26 09:37:24 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by juraj at hotfeet.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=81950
--- shadow/81950 2007-06-26 09:22:27.000000000 -0400
+++ shadow/81950.tmp.24086 2007-06-26 09:37:24.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 81950
Product: Mono: Class Libraries
Version: 1.2
-OS:
+OS: unknown
OS Details: FC6
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: juraj at hotfeet.ch
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -31,6 +31,26 @@
The output used to be:
/test/blah.txt
/
now it's (the second line is empty):
~/test/blah.txt
+
+------- Additional Comments From juraj at hotfeet.ch 2007-06-26 09:37 -------
+The changes in System.Web.Compilation/TemplateControlCompiler.cs are
+caused the regression.
+
+The Method "CreateTemplateSourceDirectory ()" was removed. I guess the
+following lines in that method handled the '~' character:
+
+string tsd, bvd = parser.BaseVirtualDir;
+int len = bvd.Length;
+if (len >= 2 && bvd [0] == '~') {
+ if (bvd [1] == '/')
+ tsd = bvd.Substring (1);
+ else
+ tsd = '/' + bvd.Substring (1);
+} else if (len >= 1 && bvd [0] != '/')
+ tsd = '/' + bvd;
+else
+ tsd = bvd;
+
More information about the mono-bugs
mailing list