Author: miguel
Date: 2006-11-19 18:41:21 -0500 (Sun, 19 Nov 2006)
New Revision: 68165
Modified:
trunk/monodoc/engine/web/Changelog
trunk/monodoc/engine/web/monodoc.ashx
Log:
Modified: trunk/monodoc/engine/web/Changelog
===================================================================
--- trunk/monodoc/engine/web/Changelog 2006-11-19 23:27:01 UTC (rev 68164)
+++ trunk/monodoc/engine/web/Changelog 2006-11-19 23:41:21 UTC (rev 68165)
@@ -1,3 +1,8 @@
+2006-11-19 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * monodoc.ashx: Do not rewrite target urls that start with '#'
+ as those are links inside the current page.
+
2005-02-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* monodoc.ashx: fixed nullrefs for the 'Various' node.
@@ -21,4 +26,6 @@
2003-08-14 John Luke <[EMAIL PROTECTED]>
- * monodoc.ashx: do not close the XmlTextWriter in 'void HandleTree
(HttpContext context, string tree)' (allows the tree to work on IE and moz>=1.4)
+ * monodoc.ashx: do not close the XmlTextWriter in 'void
+ HandleTree (HttpContext context, string tree)' (allows the
+ tree to work on IE and moz>=1.4)
Modified: trunk/monodoc/engine/web/monodoc.ashx
===================================================================
--- trunk/monodoc/engine/web/monodoc.ashx 2006-11-19 23:27:01 UTC (rev
68164)
+++ trunk/monodoc/engine/web/monodoc.ashx 2006-11-19 23:41:21 UTC (rev
68165)
@@ -292,8 +292,9 @@
{
string updatedLink;
// Return the link without change if it of the form
- // $protocol://...
-
if(Regex.Match(theMatch.Groups[2].ToString(),@"^\w+:\/\/").Success)
+ // $protocol://... or #...
+
if(Regex.Match(theMatch.Groups[2].ToString(),@"^\w+:\/\/").Success ||
+
Regex.Match(theMatch.Groups[2].ToString(),"^#").Success)
{
updatedLink=theMatch.Groups[0].ToString();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches