Commit 495b5e2c authored by Henri MEDOT's avatar Henri MEDOT
Browse files

Issue #1620028 by msypes, anrikun: Allow internal links with spaces

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