Changeset 20613


Ignore:
Timestamp:
2009-09-16T15:06:14+12:00 (15 years ago)
Author:
kjdon
Message:

escape backslashes in plugin options before passing to the eval (new plugin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugin.pm

    r20578 r20613  
    175175        $options .= "$globals";
    176176    }
     177    # need to escape backslash before putting in to the eval
     178    $options =~ s/\\/\\\\/g;
    177179    $options =~ s/\$/\\\$/g;
    178 
    179180    eval ("\$plugobj = new \$pluginname([],[$options])");
    180181    die "$@" if $@;
Note: See TracChangeset for help on using the changeset viewer.