Changeset 1276

Show
Ignore:
Timestamp:
12/09/06 23:50:28 (2 years ago)
Author:
jm3
Message:

now you can't add yourself as a peep by manually munging the URLs (thanks, pheezy :-)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/contacts/add.php

    r1079 r1276  
    1111        if( $tok && $tok == md5( getPasswdForUser( $u ))) { 
    1212 
    13                 if( $user ) { 
     13                if( $user && $u != $user ) { 
    1414%> 
    1515<h1> 
     
    1717</h1> 
    1818<% 
    19                 add_contact( $user, $u ); 
    20                 notify_added_as_peep( $user, $u ); 
     19                       add_contact( $user, $u ); 
     20                       notify_added_as_peep( $user, $u ); 
    2121%> 
    2222 
     
    2424 
    2525<% 
    26         } else { 
     26               } else { 
    2727%> 
    28 <h1>oops! no user to remove.</h1> 
     28<h1>Oops!</h1> 
    2929<% 
    30        
     30               
    3131        } # end auth 
    3232%>