Bug #52912 ยป 52912.diff
typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php | ||
---|---|---|
$softRefObj = BackendUtility::softRefParserObj($spKey);
|
||
// If there is an object returned...
|
||
if (is_object($softRefObj)) {
|
||
if ($spKey == 'url') {
|
||
// May may need to fix the URL if it was created by a link wizard
|
||
if (!parse_url($valueField, PHP_URL_SCHEME)) {
|
||
$valueField = 'http://' . $valueField;
|
||
}
|
||
// We also need 'subst' to correctly validate URLs
|
||
if (!in_array('subst', $spParams)) {
|
||
$spParams[] = 'subst';
|
||
}
|
||
}
|
||
// Do processing
|
||
$resultArray = $softRefObj->findRef($table, $field, $idRecord, $valueField, $spKey, $spParams);
|
||
if (!empty($resultArray['elements'])) {
|