Bug Forums not being excluded in Anonymise External URL

Status
Not open for further replies.

iA001

New member
In External Links settings, there's an option to Anonymise External URLs and below that we have Excluded Forums. When I click Yes to Anonymise external URLs, it is not taking the exclusions into account and it is redirecting all links in every forum.
Below is the code snippet from url.php file and it does not include the condition for checking excluded forum ids,
Code:
			if (
				DBSEO::$config['dbtech_dbseo_externalurls_anonymise'] AND
				(
					strpos($url, 'http://') !== false OR
					strpos($url, 'https://') !== false
				) AND
				in_array(THIS_SCRIPT, array('showthread', 'printthread', 'showpost', 'forumdisplay', 'newreply')) AND
				strpos($urlPrefix,'<a') !== false AND
				strpos($urlPrefix, 'href') !== false AND
				$_isExternal
			)
			{
				// Ensure external URLs have redirects
				$url = DBSEO::$config['_bburl'] . '/redirect-to/?redirect=' . urlencode(html_entity_decode($url, ENT_QUOTES | ENT_HTML401));
			}
 
That is not what that setting applies to. Please see the block of code directly above the block you quoted.

Code:
						if (
							(
								DBSEO::$config['dbtech_dbseo_externalurls_blacklist']
								AND in_array($url_host, DBSEO::$config['dbtech_dbseo_externalurls_blacklist'])
							)
							OR !$GLOBALS['foruminfo']
							OR !in_array($GLOBALS['foruminfo']['forumid'], DBSEO::$config['dbtech_dbseo_externalurls_forumexclude'])
						)
						{
							// We didn't have a rel tag already, add one
							$urlPrefix = preg_replace('#(<a\s)#is', '\\1' . $_noFollow . ' ', $urlPrefix);
						}
 
Hello iA001,

This ticket has now been closed with the status Not A Bug.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,172
Customer rating
5.00 star(s) 1 ratings
Top