User tests: Successful: Unsuccessful:
Pull Request for Issue #20325.
When tracking clicks of a deleted/non existent banner ID, the redirect URL is http://
which causes browser error. This PR checks that the banner ID is valid and if not, display a 404 page.
On the front end, enter the following URL index.php/component/banners/click/123
Display a 404 page
Error message generated by the browser regarding broken contents. The return HTTP status is 303 with header Location: http://
In PHP error log:
PHP Notice: Trying to get property 'track_clicks' of non-object in \components\com_banners\models\banner.php on line 61
PHP Notice: Trying to get property 'clickurl' of non-object in \components\com_banners\models\banner.php on line 197
none
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_banners |
Title |
|
Title |
|
@NormanMalessa please mark your Test as successfully:
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-12 22:43:57 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
?
|
Verified that it works👍 , have no clue why appveyor build fails