[Mono-bugs] [Bug 431622] aspx files with + in their filenames causes invalid code
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 2 11:11:59 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=431622
User rkvinge at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=431622#c1
--- Comment #1 from Rolf Bjarne Kvinge <rkvinge at novell.com> 2008-10-02 09:11:59 MDT ---
This patch fixes it, however it might be interesting to test for other
characters than + too.
Index: TemplateParser.cs
===================================================================
--- TemplateParser.cs (revision 113039)
+++ TemplateParser.cs (working copy)
@@ -1027,11 +1027,13 @@
className = inputFile.Substring
(physPath.Length).ToLower (CultureInfo.InvariantCulture);
className = className.Replace ('.',
'_');
className = className.Replace ('/',
'_').Replace ('\\', '_');
+ className = className.Replace ('+',
'_');
} else
#endif
className = Path.GetFileName
(inputFile).Replace ('.', '_');
className = className.Replace ('-', '_');
className = className.Replace (' ', '_');
+ className = className.Replace ('+', '_');
if (Char.IsDigit(className[0])) {
className = "_" + className;
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list