Skip to content

Commit

Permalink
- escape javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
dm committed Sep 19, 2008
1 parent a90d247 commit 149dd0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iroffer-state.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#

$meta_generator = '
<meta name="generator" content="iroffer-state 2.11, iroffer.dinoex.net">
<meta name="generator" content="iroffer-state 2.12, iroffer.dinoex.net">
';

# IRC-Farbe-Codes ausblenden
Expand Down Expand Up @@ -105,7 +105,7 @@
$javascript_code = '';
if ( $javascript > 0 ) {
$javascript_code = '
<script language=javascript type=text/javascript>
<script language="javascript" type="text/javascript">
<!--
function selectThis(src) {
document.selection.clear;
Expand Down Expand Up @@ -923,8 +923,8 @@ function write_table( )
}
$tname = htmlspecialchars( $tname);
if ( $javascript > 0 ) {
$tname = '<span class="selectable" onclick=javascript:selectThis(\''.
$jsid.'\');>'.
$tname = '<span class="selectable" onclick="javascript:selectThis(\''.
$jsid.'\');">'.
$tname."</span>\n".
'<span id="'.$jsid.'" class="hidden">'.
'/msg '.$this->nick.' xdcc send '.$tpack."</span>\n";
Expand Down

0 comments on commit 149dd0e

Please sign in to comment.