Escaped text from input fields

classic Classic list List threaded Threaded
2 messages Options
| Threaded
Open this post in threaded view
|

Escaped text from input fields

Renato Alves
Hi everyone,

I'm writing a wrapper that includes one text field.

I'm then passing the contents of this field to the underlying tool with
a simple:

  command $textfield

However when a user inputs something like Test#1 the command ends up as:

  command Test__pd__1

I did a quick search on the web and it seems to be the name of some
escaping function in galaxy.

Is there any way I can get the text field content across untouched?

Thanks,
Renato


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

signature.asc (271 bytes) Download Attachment
| Threaded
Open this post in threaded view
|

Re: Escaped text from input fields

Peter Cock
Hi Renato,

Yes, Galaxy maps potentially problematic/dangerous characters
to escaped versions. You can control this, see <sanitizer> on:
https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax

Peter

On Sat, Jul 5, 2014 at 9:04 AM, Renato Alves <[hidden email]> wrote:

> Hi everyone,
>
> I'm writing a wrapper that includes one text field.
>
> I'm then passing the contents of this field to the underlying tool with
> a simple:
>
>   command $textfield
>
> However when a user inputs something like Test#1 the command ends up as:
>
>   command Test__pd__1
>
> I did a quick search on the web and it seems to be the name of some
> escaping function in galaxy.
>
> Is there any way I can get the text field content across untouched?
>
> Thanks,
> Renato
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>   http://lists.bx.psu.edu/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/