Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ckeditor_link
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
ckeditor_link
Commits
495b5e2c
Commit
495b5e2c
authored
8 years ago
by
Henri MEDOT
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1620028 by msypes, anrikun: Allow internal links with spaces
parent
17519b08
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckeditor_link.module
+1
-1
1 addition, 1 deletion
ckeditor_link.module
plugins/link/plugin.js
+1
-1
1 addition, 1 deletion
plugins/link/plugin.js
with
2 additions
and
2 deletions
ckeditor_link.module
+
1
−
1
View file @
495b5e2c
...
...
@@ -341,5 +341,5 @@ function ckeditor_link_url($path = NULL, $langcode, $options = array()) {
}
function
_ckeditor_link_check_path
(
$path
)
{
return
preg_match
(
'`^[a-z][\w\/\.-]*$`i'
,
$path
);
return
preg_match
(
'`^[a-z][\w\/\.
-]*$`i'
,
$path
);
}
This diff is collapsed.
Click to expand it.
plugins/link/plugin.js
+
1
−
1
View file @
495b5e2c
...
...
@@ -60,7 +60,7 @@
if
(
value
.
indexOf
(
basePath
)
==
0
)
{
value
=
value
.
substr
(
basePath
.
length
);
}
if
(
/^
[
a-z
][\w\/\.
-
]
*$/i
.
test
(
value
))
{
if
(
/^
[
a-z
][\w\/\.
-
]
*$/i
.
test
(
value
))
{
return
value
;
}
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment