Changeset 694

Show
Ignore:
Timestamp:
11/05/06 16:31:06 (2 years ago)
Author:
sven
Message:

kill optional trailing slashes on icon urls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/htaccess-dist

    r690 r694  
    8181RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+)\/?$ _files/rss2.php?files_name=$1&tag=$2 
    8282 
    83 RewriteRule ^_icon\/user/([-0-9]+)\/?$ _icons/icon.php?id=$1 
    84 RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/?$ _icons/icon.php?id=$1&constraint1=$2&size1=$3 
    85 RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/([A-Za-z])\/([0-9]+)\/?$ _icons/icon.php?id=$1&constraint1=$2&size1=$3&constraint2=$4&size2=$5 
    86 RewriteRule ^_icon\/file/([-0-9]+)\/?$ _files/icon.php?id=$1 
     83RewriteRule ^_icon\/user/([-0-9]+)$ _icons/icon.php?id=$1 
     84RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)$ _icons/icon.php?id=$1&constraint1=$2&size1=$3 
     85RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/([A-Za-z])\/([0-9]+)$ _icons/icon.php?id=$1&constraint1=$2&size1=$3&constraint2=$4&size2=$5 
     86RewriteRule ^_icon\/file/([-0-9]+)$ _files/icon.php?id=$1 
    8787 
    8888# Some blogging clients probe Wordpress or MoveableType endpoints, 
  • devel/units/groups/groups_edit_display.php

    r670 r694  
    2929                                            } 
    3030                                            if ($i == 0) $memberlist .= " 
    31                                 <option value=\"{$member->user_id}\"> 
    32                                     ".stripslashes($member->name)." 
    33                                 </option> 
     31                                <option value=\"{$member->user_id}\">".stripslashes($member->name)."</option> 
    3432"; 
    3533                                        } 
     
    3836                                    if ($ok == true) { 
    3937                                        $column1 .= <<< END 
    40                                 <option value="{$friend->user_id}"> 
    41                                     {$friend->name} 
    42                                 </option> 
     38                                <option value="{$friend->user_id}">{$friend->name}</option> 
    4339END; 
    4440                                    } 
  • devel/units/weblogs/weblogs_posts_view.php

    r690 r694  
    162162                        $commentownerusername = user_info('username', $comment->owner); 
    163163                        $comment->postedname = '<a href="' . url . $commentownerusername . '/">' . $comment->postedname . '</a>'; 
    164                         $comment->icon = '<a href="' . url . $commentownerusername . '/">' . "<img src=\"" . $CFG->wwwroot . "_icon/user/" . run("icons:get",$comment->owner) . "/w/50/h/50/\" border=\"0\" align=\"left\" alt=\"\" /></a>"; 
     164                        $comment->icon = '<a href="' . url . $commentownerusername . '/">' . "<img src=\"" . $CFG->wwwroot . "_icon/user/" . run("icons:get",$comment->owner) . "/w/50/h/50\" border=\"0\" align=\"left\" alt=\"\" /></a>"; 
    165165                        $comment->body = run("weblogs:text:process", array($comment->body, false)); 
    166166                    } else {