Bugfix: Push page path through makepathsafe when detecting redlinks

This commit is contained in:
Starbeamrainbowlabs 2016-12-26 18:30:29 +00:00
parent d17925a662
commit 103889d41c
3 changed files with 3 additions and 3 deletions

View File

@ -5859,7 +5859,7 @@ class PeppermintParsedown extends ParsedownExtra
]
];
if(empty($pageindex->$linkPage))
if(empty($pageindex->{makepathsafe($linkPage)}))
$result["element"]["attributes"]["class"] = "redlink";
return $result;

View File

@ -230,7 +230,7 @@
"author": "Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation, and also *requires* write access to the disk on first load.",
"id": "parser-parsedown",
"lastupdate": 1482008539,
"lastupdate": 1482776902,
"optional": false
}
]

View File

@ -369,7 +369,7 @@ class PeppermintParsedown extends ParsedownExtra
]
];
if(empty($pageindex->$linkPage))
if(empty($pageindex->{makepathsafe($linkPage)}))
$result["element"]["attributes"]["class"] = "redlink";
return $result;