bugWeeChat - Bugs: bug #26265, TCL hooks dont escape string...

 
 

bug #26265: TCL hooks dont escape string parameters

Submitter:  None
Submitted:  Tue 21 Apr 2009 07:49:57 AM UTC
   
 
Category:  script API plugins Severity:  3 - Normal
Item Group:  security Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  sleo Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.3.0
IRC nick:  sleo
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Apr 2009 08:56:33 AM UTC, comment #2: 

New patch commited.

Sebastien Helleu <flashcode>
Group administrator
Tue 21 Apr 2009 01:23:24 PM UTC, comment #1: 

There's pending patch #6810, which is not ok today.

Sebastien Helleu <flashcode>
Group administrator
Tue 21 Apr 2009 07:49:57 AM UTC, original submission:  

This simple tcl script doesnt work properly if the incoming text includes [ or ] chars.

weechat::register "err" "" "0.1" "GPL3" "descr" "" ""
weechat::hook_modifier "irc_in_privmsg" "ircIn"
proc ircIn {modifier server text} {return $text}


e.g. a simple channel message: "os: [Linux 2.6.29-ARCH x86_64]" shows the following error in weechat buffer:
tcl unable to run function "ircIn": invalid command name "Linux"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-06 flashcode Open/ClosedOpen Closed
        Release3.3-dev 0.3.0
    2009-04-24 flashcode StatusConfirmed Fixed
    2009-04-21 flashcode Categoryscripts script API plugins
        Item GroupNone security
        StatusNone Confirmed
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code