Is it possible to filter datas before to fill form with urldecode() php function ?

In urlfill.module line 103:
replace :
$form['title']['#default_value'] = $urlcontent;
by :
$form['title']['#default_value'] = urldecode($urlcontent);

and line 107 body_field

and cck field also

This is very interesting to extract informations from external sites

You may define an option to filter or not field.

Thanks a lot

Comments

phayes’s picture

Status: Needs review » Closed (won't fix)

I'm using $_GET to grab the url data, after a little digging, I see is already decoded.

See http://php.net/manual/en/function.urldecode.php

The superglobals $_GET and $_REQUEST are already decoded. Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results.

If you find that somehow things are not getting decoded as you expect, please re-open with specifics and we will see if we can figure it out.