Page MenuHomePhabricator

doMagicLinks.diff.txt

Authored By
bzimport
Nov 21 2014, 10:58 PM
Size
815 B
Referenced Files
None
Subscribers
None

doMagicLinks.diff.txt

--- app/includes/parser/Parser.php 2009-06-12 23:11:47.000000000 -0400
+++ gdr/includes/parser/Parser.php 2010-03-20 00:45:16.000000000 -0400
@@ -918,7 +918,7 @@
$urlChar = self::EXT_LINK_URL_CLASS;
$text = preg_replace_callback(
'!(?: # Start cases
- (<a.*?</a>) | # m[1]: Skip link text
+ (<a[ >].*?</a>) | # m[1]: Skip link text
(<.*?>) | # m[2]: Skip stuff inside HTML elements' . "
(\\b(?:$prots)$urlChar+) | # m[3]: Free external links" . '
(?:RFC|PMID)\s+([0-9]+) | # m[4]: RFC or PMID, capture number

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6036
Default Alt Text
doMagicLinks.diff.txt (815 B)

Event Timeline