Skip to content
Snippets Groups Projects
Commit 495b5e2c authored by Henri MEDOT's avatar Henri MEDOT
Browse files

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
......@@ -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);
}
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment