Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed over-zealous removal of returns from text ...

  • Loading branch information...
commit 0eae8049a0ce88fed56f7b47ce29d90e84e1c7cd 1 parent cffbaff
martin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
4 lib/weblib.php
@@ -269,8 +269,8 @@ function text_to_html($text, $smiley=true, $para=true) {
$text = eregi_replace(">([[:space:]]+)<", "><", $text);
// Remove any returns that precede or follow HTML tags
- $text = eregi_replace("([\n\r])+<", " <", $text);
- $text = eregi_replace(">([\n\r])+", "> ", $text);
+ $text = eregi_replace("([\n\r])<", " <", $text);
+ $text = eregi_replace(">([\n\r])", "> ", $text);
// Make URLs into links. eg http://moodle.com/
$text = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])",
Please sign in to comment.
Something went wrong with that request. Please try again.