Menu

#1 delete shout / IP address bugfix

v2.37
open-accepted
Keilaron
4
2005-03-19
2002-10-29
trout soup
No

this addresses the bug mentioned at
http://www.webfroot.co.nz/phpBB2/viewtopic.php?t=510

okay, the lengths of the IP addresses being compared
are sometimes different. one is padded on the right
with spaces.

the fix is simple, try this in shoutbox.php:

the line that is
if (($shouts['ipaddress'] == $REMOTE_ADDR) &&
($shouts['time'] > time()-$deletetime)) { //

change to

if ((chop($shouts['ipaddress']) == chop($REMOTE_ADDR))
&& ($shouts['time'] > time()-$deletetime)) { //

it works here for me.

Discussion

  • trout soup

    trout soup - 2002-10-29

    bugfixed shoutbox.php

     
  • Nobody/Anonymous

    Logged In: NO

    this did not work for me

     
  • Keilaron

    Keilaron - 2005-03-19
    • labels: --> Functionality
    • milestone: --> v2.37
    • priority: 5 --> 4
    • assigned_to: nobody --> keilaron
    • status: open --> open-accepted
     
  • Keilaron

    Keilaron - 2005-03-19

    Logged In: YES
    user_id=1049905

    This will be investigated... that forum is no longer available.
    Line 71

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.