Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sergio Rabellino
moodle
Compare revisions
6153be6850869cdc3a6ae925dcf6e688ac481333 to wip-nolink-bug
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
rabellino/moodle
Select target project
No results found
wip-nolink-bug
Select Git revision
Branches
master
wip-mongodb-update-driver-calls
wip-nolink-bug
wip-nolink-bug-34
wip-nolink-bug-35
wip-page-lastupdate-feature
6 results
Swap
Target
rabellino/moodle
Select target project
rabellino/moodle
1 result
6153be6850869cdc3a6ae925dcf6e688ac481333
Select Git revision
Branches
master
wip-mongodb-update-driver-calls
wip-nolink-bug
wip-nolink-bug-34
wip-nolink-bug-35
wip-page-lastupdate-feature
6 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
MDL-61403 filter: Fix for the nolink tag ignored
· adeff605
Sergio Rabellino
authored
7 years ago
Fix for the nolink tag ignored if there are some other attributes defined in the same span
adeff605
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/filterlib.php
+1
-1
1 addition, 1 deletion
lib/filterlib.php
with
1 addition
and
1 deletion
lib/filterlib.php
View file @
adeff605
...
...
@@ -1240,7 +1240,7 @@ function filter_phrases($text, &$link_array, $ignoretagsopen=NULL, $ignoretagscl
// A list of open/close tags that we should not replace within
// Extended to include <script>, <textarea>, <select> and <a> tags
// Regular expression allows tags with or without attributes
$filterignoretagsopen
=
array
(
'<head>'
,
'<nolink>'
,
'<span
class="nolink">'
,
$filterignoretagsopen
=
array
(
'<head>'
,
'<nolink>'
,
'<span
(\s[^>]*?)?
class="nolink"
(\s[^>]*?)?
>'
,
'<script(\s[^>]*?)?>'
,
'<textarea(\s[^>]*?)?>'
,
'<select(\s[^>]*?)?>'
,
'<a(\s[^>]*?)?>'
);
$filterignoretagsclose
=
array
(
'</head>'
,
'</nolink>'
,
'</span>'
,
...
...
This diff is collapsed.
Click to expand it.