<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./contrib/xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.5.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime Parse URL Fix</title>
		<description lang="en">Fixes magic URLs that do not get parsed correctly when located next to a right square bracket (]) such as those used by BBCodes.</description>
	    <author-notes lang="en">Creating, maintaining, and updating MODs requires a lot of time and effort, so if you like this MOD and have the desire to express your thanks through donations, that would be greatly appreciated. My Paypal ID is primehalo@gmail.com, or contact me for my mailing address. The suggested donation amount for this MOD is $1.00 (but any amount will help).</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
				<homepage><![CDATA[http://www.absoluteanime.com/admin/mods.htm]]></homepage>
			</author>
		</author-group>
		<mod-version>1.0.0</mod-version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>3.0.6</target-version>
		</installation>
		<history>
			<entry>
				<date>2008-01-16</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>Initial release.</change>
				</changelog>
			</entry>
		</history>
	</header>
	<action-group>
		<open src="includes/functions_content.php">
			<edit>
				<find><![CDATA[		$magic_url_replace[] = "make_clickable_callback(MAGIC_URL_EMAIL]]></find>
				<action type="after-add"><![CDATA[//mod: Prime Parse URL Fix --------------------------------------------------//
		foreach ($magic_url_match as $key => $regexp)
		{
			if (($pos = strpos($regexp, '])')) !== false)
			{
				$magic_url_match[$key] = substr($regexp, 0, $pos) . '\\]' . substr($regexp, $pos);
			}
		}
//end: Prime Parse URL Fix --------------------------------------------------//]]></action>
			</edit>
		</open>
	</action-group>
</mod>
