<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Prepopulating Input not being Escaped</title>
		<link>https://legacy.forums.gravityhelp.com/topic/prepopulating-input-not-being-escaped</link>
		<description>Gravity Support Forums Topic: Prepopulating Input not being Escaped</description>
		<language>en-US</language>
		<pubDate>Sat, 18 Apr 2026 16:09:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/prepopulating-input-not-being-escaped" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Prepopulating Input not being Escaped"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulating-input-not-being-escaped#post-116992</link>
			<pubDate>Tue, 08 Jan 2013 19:23:23 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">116992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Which version of the User Registration add-on are you using?  We might have already fixed this issue in a later, unreleased version.  Let us know what your version is.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SwankIBS on "Prepopulating Input not being Escaped"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulating-input-not-being-escaped#post-116893</link>
			<pubDate>Tue, 08 Jan 2013 14:22:02 +0000</pubDate>
			<dc:creator>SwankIBS</dc:creator>
			<guid isPermaLink="false">116893@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We have a user registration field for our members to update their bio on the front end. We noticed recently that quote's weren't being properly escaped causing an error.&#60;/p&#62;
&#60;p&#62;Turns out this issue is in userregistration.php in the prepopulate_input function (lines 3225 - 32310.&#60;/p&#62;
&#60;p&#62;Replacing:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function prepopulate_input($input_id, $value) {
        $filter_name = &#38;#39;gfur_field_&#38;#39; . str_replace(&#38;#39;.&#38;#39;, &#38;#39;_&#38;#39;, $input_id);
        add_filter(&#38;quot;gform_field_value_{$filter_name}&#38;quot;, create_function(&#38;quot;&#38;quot;, &#38;quot;return &#38;#39;$value&#38;#39;;&#38;quot;));

        return $filter_name;
    }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function prepopulate_input($input_id, $value) {
        $value = str_replace(&#38;quot;&#38;#39;&#38;quot;, &#38;quot;\&#38;#39;&#38;quot;, str_replace(&#38;quot;\\&#38;quot;, &#38;quot;\\\\&#38;quot;, $value));
        $filter_name = &#38;#39;gfur_field_&#38;#39; . str_replace(&#38;#39;.&#38;#39;, &#38;#39;_&#38;#39;, $input_id);
        add_filter(&#38;quot;gform_field_value_{$filter_name}&#38;quot;, create_function(&#38;quot;&#38;quot;, &#38;quot;return &#38;#39;$value&#38;#39;;&#38;quot;));

        return $filter_name;
    }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Fixes the issue on our end. Please consider using this or a better solution!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
