Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6496
doMagicLinks.diff.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 10:58 PM
2014-11-21 22:58:47 (UTC+0)
Size
815 B
Referenced Files
None
Subscribers
None
doMagicLinks.diff.txt
View Options
--- 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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6036
Default Alt Text
doMagicLinks.diff.txt (815 B)
Attached To
Mode
T24905: Parser.php doMagicLinks() mishandle abbr tag
Attached
Detach File
Event Timeline
Log In to Comment