Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3b5f2d8e
Commit
3b5f2d8e
authored
Sep 28, 2007
by
Dries
Browse files
- Patch
#179244
by tangent: line break filter operates on object element.
parent
4b6cd91a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/filter/filter.module
View file @
3b5f2d8e
...
...
@@ -869,7 +869,7 @@ function _filter_autop($text) {
// We don't apply any processing to the contents of these tags to avoid messing
// up code. We look for matched pairs and allow basic nesting. For example:
// "processed <pre> ignored <script> ignored </script> ignored </pre> processed"
$chunks
=
preg_split
(
'@(</?(?:pre|script|style)[^>]*>)@i'
,
$text
,
-
1
,
PREG_SPLIT_DELIM_CAPTURE
);
$chunks
=
preg_split
(
'@(</?(?:pre|script|style
|object
)[^>]*>)@i'
,
$text
,
-
1
,
PREG_SPLIT_DELIM_CAPTURE
);
// Note: PHP ensures the array consists of alternating delimiters and literals
// and begins and ends with a literal (inserting NULL as required).
$ignore
=
FALSE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment