Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
ckeditor_link
Commits
495b5e2c
Commit
495b5e2c
authored
Feb 11, 2016
by
Henri MEDOT
Browse files
Issue #1620028 by msypes, anrikun: Allow internal links with spaces
parent
17519b08
Changes
2
Hide whitespace changes
Inline
Side-by-side
ckeditor_link.module
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
);
}
plugins/link/plugin.js
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
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment