Project

General

Profile

Bug #52912 ยป 52912.diff

Dmitry Dulepov, 2013-10-17 12:59

View differences:

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'])) {
    (1-1/1)