noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 23/23: IText , remove double-quote


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 23/23: IText , remove double-quote
Date: Tue, 24 Nov 2020 14:22:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit a7236046a0b9da403179da65339fcd22a523ecbe
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Nov 22 17:09:41 2020 +0100

    IText , remove double-quote
---
 include/lib/itext.class.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/lib/itext.class.php b/include/lib/itext.class.php
index 9cbafc9..e66bb90 100644
--- a/include/lib/itext.class.php
+++ b/include/lib/itext.class.php
@@ -46,6 +46,9 @@ class IText extends HtmlInput
         if ( $this->readOnly==true) return $this->display();
        $this->id=($this->id=="")?$this->name:$this->id;
 
+       // Double quote makes troubles 
+       $this->value=str_replace('"','',$this->value);
+
         $t= 'title="'.$this->title.'" ';
         $autofocus=($this->autofocus)?" autofocus ":"";
         $require=($this->require)?"required":"";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]