Share

NINO - Network Management

Tracker: Bugs

5 Trap event with quote not INSERTed in database - ID: 1672311
Last Update: Tracker Item Submitted ( fabrices )

trapd.pl, version: 4.1.8

A trap whose event text contains a quote (') character
is not inserted in the database.

In trapd.pl, line 487: the INSERT SQL command will
fail because the quote is not escaped in the event
field.

The solution is to add the line:
$event =~ s/\'/\\\'/g; ## replace ' with \'

before the creation of the INSERT command string.


Fabrice ( fabrices ) - 2007-03-02 10:25

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.