@@ -113,12 +113,9 module Redmine | |||
|
113 | 113 | |
|
114 | 114 | # Destructively replaces urls into clickable links |
|
115 | 115 | def auto_link!(text) |
|
116 | Rails.logger.debug "=====================" | |
|
117 | 116 | Rails.logger.debug text |
|
118 | Rails.logger.debug "=====================" | |
|
119 | 117 | text.gsub!(AUTO_LINK_RE) do |
|
120 | 118 | all, leading, proto, url, post = $&, $1, $2, $3, $6 |
|
121 | Rails.logger.debug all | |
|
122 | 119 | if leading =~ /<a\s/i || leading =~ /![<>=]?/ |
|
123 | 120 | # don't replace URLs that are already linked |
|
124 | 121 | # and URLs prefixed with ! !> !< != (textile images) |
General Comments 0
You need to be logged in to leave comments.
Login now