TinyPortal
Development => Bugs/Errors => Feedback => Fixed Bugs => Topic started by: @rjen on November 15, 2018, 06:17:52 PM
In my forum I just found a series of errors, most likely due to a bot or something...
The errors are: Wrong value type sent to the database. Integer expected. (start)
The URL that was being accessed is this
https://test.fjr-club.nl/index.php?cat=78;p=102121121121212.1
It seems that de error is caused by the 'decimal point' in the (non existing) page number ... p=102121121121212.1
Is it possible to somehow prevent these links from throwing errors into the log?
It is actually caused by line 74 in TPblocklayout.template.php
69: // TinyPortal integrated bars
70: if($context['TPortal']['leftpanel']==1)
71: {
72: echo '
73: <div id="tpleftbarContainer" style="width:' , ($context['TPortal']['leftbar_width']) , 'px; ' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
==>74: <div id="tpleftbarHeader" style="' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">
75: ' , $context['TPortal']['useroundframepanels']==1 ?
76: '<span class="upperframe"><span></span></span>
77: <div class="roundframe" style="overflow: auto;">' : ''
78: , TPortal_panel('left') ,
79: $context['TPortal']['useroundframepanels']==1 ?
80: '</div>
81: <span class="lowerframe"><span></span></span>' : '' , '
82: <p class="clearthefloat"></p></div>
83: </div>';
Fixed in 1.6.1