Contao: Remaining TODO in the PageUrlListener

Created on 21 Jul 2020  路  1Comment  路  Source: contao/contao

Most helpful comment

As discussed in Mumble on July 30th, this is a known limitation that we currently cannot fix. However, we can improve the routine by checking if the POST data exists:

if (null !== ($dns = $input->post('dns')) {
    $currentDomain = $dns; 
}

if (null !== ($urlPrefix = $input->post('urlPrefix')) {
    $currentPrefix = $urlPrefix; 
}

if (null !== ($urlSuffix = $input->post('urlSuffix')) {
    $currentSuffix = $urlSuffix; 
}

>All comments

As discussed in Mumble on July 30th, this is a known limitation that we currently cannot fix. However, we can improve the routine by checking if the POST data exists:

if (null !== ($dns = $input->post('dns')) {
    $currentDomain = $dns; 
}

if (null !== ($urlPrefix = $input->post('urlPrefix')) {
    $currentPrefix = $urlPrefix; 
}

if (null !== ($urlSuffix = $input->post('urlSuffix')) {
    $currentSuffix = $urlSuffix; 
}
Was this page helpful?
0 / 5 - 0 ratings