diff --git a/src/models/Package.php b/src/models/Package.php index 2e53f99..86056ee 100644 --- a/src/models/Package.php +++ b/src/models/Package.php @@ -447,7 +447,8 @@ class Package extends ActiveRecord return $parser->parse($this->readme); } if ($this->readme_format == 'text') { - return '
' . $this->readme . ''; + $readme = preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@', '$1', $this->readme); + return '
' . $readme . ''; } } return '';