Changeset 676

Show
Ignore:
Timestamp:
10/30/06 01:21:26 (2 years ago)
Author:
sven
Message:

html validation fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/units/files/files_links_make.php

    r669 r676  
    1111                require_once($CFG->dirroot.'lib/filelib.php'); 
    1212                $mimeinfo = mimeinfo('type',$file->location); 
    13                 $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname
     13                $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . urlencode($file->originalname)
    1414                switch($mimeinfo) { 
    1515                     
    1616                    case "audio/mpeg": 
    1717                    case "audio/mp3": 
    18                      
    19                         $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname; 
    2018                        $filetitle = urlencode(stripslashes($file->title)); 
    2119                        $run_result .= " 
    2220        <embed src=\"" . $CFG->wwwroot . "_files/mp3player/xspf_player_slim.swf?song_url=$filepath&amp;song_title=$filetitle\" 
    2321        type=\"application/x-shockwave-flash\" 
    24         height=\"15\" width=\"400\"> </embed>"; 
     22        height=\"15\" width=\"400\" />"; 
    2523                        break; 
    2624                         
    2725                   case "application/x-shockwave-flash": 
    28                         $run_result .= "<embed src=\"$filepath\" type=\"application/x-shockwave-flash\" > </embed>"; 
     26                        $run_result .= "<embed src=\"$filepath\" type=\"application/x-shockwave-flash\" />"; 
    2927                        break; 
    3028                   default: 
    31                         $run_result .= "<a href=\""; 
    32                         $run_result .= $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname; 
    33                         $run_result .= "\" >"; 
     29                        $run_result .= '<a href="' . $filepath . '">'; 
    3430                        $run_result .= stripslashes($file->title); 
    3531                        $run_result .= "</a> " . "[" .$mimeinfo . "]"; 
  • devel/units/files/folder_view.php

    r659 r676  
    116116            $filemenu = round(($file->size / 1000000),4) . "Mb "; 
    117117            $icon = $CFG->wwwroot . "_files/icon.php?id=" . $file->ident; 
    118             $filepath = $CFG->wwwroot . "$username/files/$folder/$ident/$originalname"
     118            $filepath = $CFG->wwwroot . "$username/files/$folder/$ident/" . urlencode($originalname)
    119119            require_once($CFG->dirroot.'lib/filelib.php'); 
    120120            $mimetype = mimeinfo('type',$file->originalname); 
     
    130130    type=\"application/x-shockwave-flash\" 
    131131    pluginspage=\"http://www.macromedia.com/go/getflashplayer\" 
    132     align=\"center\" height=\"17\" width=\"17\"> </embed
     132    align=\"center\" height=\"17\" width=\"17\" /
    133133</object>"; 
    134134            } 
  • devel/units/weblogs/weblogs_text_process.php

    r643 r676  
    1818             
    1919            \$matches[1] = str_replace("&amp;","&",\$matches[1]); 
    20             return "<embed style=\"width:400px; height:326px;\" id=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$matches[1]\"> </embed>"; 
     20            return "<embed style=\"width:400px; height:326px;\" id=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$matches[1]\" />"; 
    2121             
    2222END;