18 Aug
2008
18 Aug
'08
9:10 a.m.
Answering to myself... Assaf Gordon wrote, On 08/18/2008 08:49 AM:
I want to pass a string to a tool, and this string may contains CR/LF, double quotes, Dollar signs, etc. .... However, when I enter non alpha numeric characters, they are converted to X (the actual character 'X') before being sent to my script. double quotes are converted to "__dq__" and single quotes are converted to "__sq__".
Found the beautiful hack at 'lib/galaxy/util/__init__.py' line 142... if the parameter name is 'url_paste' then the value won't be sanitized... :-) This is actually quite useful, please don't change this. -Gordon.