Missing /> on some <img> tags Missing /> on some <img> tags
 

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]

Main Menu

Missing /> on some <img> tags

Started by kaptainkory, August 06, 2005, 01:52:59 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

kaptainkory

In ecard.php, FIND (line 219):

<img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image"></a><br />

REPLACE WITH:

<img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image" /></a><br />

In image_processor.php, FIND (line 630):

print "<img src=\"$path_to_preview_image\" alt=\"{$lang_image_processor_php['preview_image_alt_text']}\">";

REPLACE WITH:

print "<img src=\"$path_to_preview_image\" alt=\"{$lang_image_processor_php['preview_image_alt_text']}\" />";

In picEditor.php: FIND (639):

<IMG src="<?php echo $imgObj->directory.$imgObj->filename?>?<?php echo rand(); ?>" <?php echo $imgObj->string?> align="absmiddle">

REPLACE WITH (and notice lowercase tag, too):

<img src="<?php echo $imgObj->directory.$imgObj->filename?>?<?php echo rand(); ?>" <?php echo $imgObj->string?> align="absmiddle" />

In report_file.php, FIND (line 186):

                        <img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image"><br />

REPLACE WITH:

                        <img src="$thumb_pic_url" alt="" vspace="8" border="0" class="image" /><br />

In upload.php, FIND (line 2490):

    echo "<tr><td class=\"tableh2\"><img class=\"image\" src=\"".$path_to_preview."\" ></td>";

REPLACE WITH:

    echo "<tr><td class=\"tableh2\"><img class=\"image\" src=\"".$path_to_preview."\" /></td>";

In crop.inc.php, FIND (line 153):

<tr><td align="center" valign="top"><div id="imgDiv"><img src="$pic_url"></div></td></tr>

REPLACE WITH:

<tr><td align="center" valign="top"><div id="imgDiv"><img src="$pic_url" /></div></td></tr>

FIND (line 177):

      <td><img src="images/spacer.gif"></td>

REPLACE WITH:

      <td><img src="images/spacer.gif" /></td>

In media.functions.inc.php, FIND (line 117):

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

REPLACE WITH:

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

FIND (line 120):

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

REPLACE WITH:

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

Thanks.

Joachim Müller