tidy appdb html to make it validate - try 4
This commit is contained in:
committed by
Chris Morgan
parent
ccbc842d5c
commit
16949bb71c
@@ -141,8 +141,8 @@ function html_imagebutton($text, $url, $extra = "")
|
||||
static $i = 1;
|
||||
|
||||
$i++;
|
||||
$img1 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=0");
|
||||
$img2 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=1");
|
||||
$img1 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=0");
|
||||
$img2 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=1");
|
||||
|
||||
$java = "onMouseDown = 'document.img$i.src = \"$img2\"; return true;' ";
|
||||
$java .= "onMouseUp = 'document.img$i.src = \"$img1\"; return true;' ";
|
||||
@@ -238,7 +238,7 @@ function html_back_link($howmany = 1, $url = "")
|
||||
{
|
||||
$url = 'javascript:history.back('.$howmany.');';
|
||||
}
|
||||
return '<p> <a href="'.$url.'"><< Back</a></p>'."\n";
|
||||
return '<p> <a href="'.htmlentities($url).'"><< Back</a></p>'."\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user