Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Missing /> on some <img> tags  (Read 3365 times)

0 Members and 1 Guest are viewing this topic.

kaptainkory

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 51
Missing /> on some <img> tags
« on: August 06, 2005, 01:52:59 am »

In ecard.php, FIND (line 219):

Code: [Select]
<img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image"></a><br />
REPLACE WITH:

Code: [Select]
<img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image" /></a><br />
In image_processor.php, FIND (line 630):

Code: [Select]
print "<img src=\"$path_to_preview_image\" alt=\"{$lang_image_processor_php['preview_image_alt_text']}\">";
REPLACE WITH:

Code: [Select]
print "<img src=\"$path_to_preview_image\" alt=\"{$lang_image_processor_php['preview_image_alt_text']}\" />";
In picEditor.php: FIND (639):

Code: [Select]
<IMG src="<?php echo $imgObj->directory.$imgObj->filename?>?<?php echo rand(); ?>" <?php echo $imgObj->string?> align="absmiddle">
REPLACE WITH (and notice lowercase tag, too):

Code: [Select]
<img src="<?php echo $imgObj->directory.$imgObj->filename?>?<?php echo rand(); ?>" <?php echo $imgObj->string?> align="absmiddle" />
In report_file.php, FIND (line 186):

Code: [Select]
                        <img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image"><br />
REPLACE WITH:

Code: [Select]
                        <img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image" /><br />
In upload.php, FIND (line 2490):

Code: [Select]
    echo "<tr><td class=\"tableh2\"><img class=\"image\" src=\"".$path_to_preview."\" ></td>";
REPLACE WITH:

Code: [Select]
    echo "<tr><td class=\"tableh2\"><img class=\"image\" src=\"".$path_to_preview."\" /></td>";
In crop.inc.php, FIND (line 153):

Code: [Select]
<tr><td align="center" valign="top"><div id="imgDiv"><img src="$pic_url"></div></td></tr>
REPLACE WITH:

Code: [Select]
<tr><td align="center" valign="top"><div id="imgDiv"><img src="$pic_url" /></div></td></tr>
FIND (line 177):

Code: [Select]
      <td><img src="images/spacer.gif"></td>
REPLACE WITH:

Code: [Select]
      <td><img src="images/spacer.gif" /></td>
In media.functions.inc.php, FIND (line 117):

Code: [Select]
        return "<img src=\"" . $file_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$file['filename']}\" title=\"$pic_title\">";
REPLACE WITH:

Code: [Select]
        return "<img src=\"" . $file_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$file['filename']}\" title=\"$pic_title\" />";
FIND (line 120):

Code: [Select]
        return "<img src=\"images/thumb_{$extension}.jpg\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$file['filename']}\" title=\"$pic_title\">";
REPLACE WITH:

Code: [Select]
        return "<img src=\"images/thumb_{$extension}.jpg\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$file['filename']}\" title=\"$pic_title\" />";
Thanks.
« Last Edit: August 07, 2005, 09:45:19 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Missing /> on some <img> tags
« Reply #1 on: August 07, 2005, 09:45:00 am »

committed fixes
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.