encode special chars
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 10 Jun 2010 16:09:53 +0000 (18:09 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 10 Jun 2010 16:09:53 +0000 (18:09 +0200)
plekit/php/linetabs.php

index ce5e808..d2be029 100644 (file)
@@ -95,10 +95,10 @@ function plekit_linetabs ($tabs, $id=NULL) {
     } else {
       $type="type='button' value='$label'";
     }
-    $bubble=$todo['bubble'];
+    $bubble=htmlspecialchars($todo['bubble'], ENT_QUOTES);
     print "<span title='$bubble'>";
     $message="";
-    if ($todo['confirm']) $message=$todo['confirm'] . " ?";
+    if ($todo['confirm']) $message=htmlspecialchars($todo['confirm'], ENT_QUOTES) . " ?";
     print "<input $tracer $type onclick='linetabs_namespace.submit(\"$id\",\"$message\")' />";
     print "</span>";
     print "</fieldset></form></li>\n";