Welcome! Log In Create A New Profile

Advanced

" detected in a url site

Posted by Ferenir 
" detected in a url site
April 05, 2008 04:18PM
Add in check_include function on spiderfuncs.php.

---

1) $link = str_replace('"','"',$link);
2) in foreach construct dedicated to check all $url_not_include: $str = stripslashes(trim($str));

---

and now it's no problem with " in a url site.
Re: " detected in a url site
April 06, 2008 12:50PM
Can you explain more in detail how to do this exactly please?

I guess you refer to this part of the code, how would it look with your modification?

function check_include($link, $inc, $not_inc) {
	$url_inc = Array ();
	$url_not_inc = Array ();
	if ($inc != ""winking smiley {
		$url_inc = explode("\n", $inc);
	}
	if ($not_inc != ""winking smiley {
		$url_not_inc = explode("\n", $not_inc);
	}
	$oklinks = Array ();

	$include = true;
	foreach ($url_not_inc as $str) {
		$str = trim($str);
		if ($str != ""winking smiley {
			if (substr($str, 0, 1) == '*') {
				if (preg_match(substr($str, 1), $link)) {
					$include = false;
					break;
				}
			} else {
				if (!(strpos($link, $str) === false)) {
					$include = false;
					break;
				}
			}
		}
	}
	if ($include && $inc != ""winking smiley {
		$include = false;
		foreach ($url_inc as $str) {
			$str = trim($str);
			if ($str != ""winking smiley {
				if (substr($str, 0, 1) == '*') {
					if (preg_match(substr($str, 1), $link)) {
						$include = true;
						break 2;
					}
				} else {
					if (strpos($link, $str) !== false) {
						$include = true;
						break;
					}
				}
			}
		}
	}
	return $include;
}
Sorry, only registered users may post in this forum.

Click here to login