Ignore:
Timestamp:
Jul 24, 2010, 6:06:10 PM (14 years ago)
Author:
grum
Message:

Version 1.2.3, bug:1699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/lmt_aip.class.inc.php

    r6701 r6703  
    564564      if($_POST["text1"]!="")
    565565      {
    566         $sql="INSERT INTO ".$this->tables["licence_author"]." VALUES('', '". addslashes($_POST["text1"])."', '".addslashes($_POST["text2"])."')";
     566        $sql="INSERT INTO ".$this->tables["licence_author"]." VALUES('', '". htmlspecialchars($_POST["text1"], ENT_QUOTES)."', '".htmlspecialchars($_POST["text2"], ENT_QUOTES)."')";
    567567        $result=pwg_query($sql);
    568568        if($result)
     
    590590      {
    591591        $sql="UPDATE ".$this->tables["licence_author"]."
    592               SET text1 = '". addslashes($_POST["text1"])."',
    593                   text2 = '".addslashes($_POST["text2"])."'
     592              SET text1 = '". htmlspecialchars($_POST["text1"], ENT_QUOTES)."',
     593                  text2 = '".htmlspecialchars($_POST["text2"], ENT_QUOTES)."'
    594594              WHERE id = '".$_POST["id"]."'";
    595595        $result=pwg_query($sql);
Note: See TracChangeset for help on using the changeset viewer.