In "parse_url" now links with [ or ] are replaced with shortened versions to avoid parsing problems.
This commit is contained in:
parent
d2d3804e09
commit
9124d922e9
1 changed files with 9 additions and 0 deletions
|
@ -187,6 +187,9 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
|
||||||
case "description":
|
case "description":
|
||||||
$siteinfo["text"] = $attr["content"];
|
$siteinfo["text"] = $attr["content"];
|
||||||
break;
|
break;
|
||||||
|
case "thumbnail":
|
||||||
|
$siteinfo["image"] = $attr["content"];
|
||||||
|
break;
|
||||||
case "twitter:image":
|
case "twitter:image":
|
||||||
$siteinfo["image"] = $attr["content"];
|
$siteinfo["image"] = $attr["content"];
|
||||||
break;
|
break;
|
||||||
|
@ -421,6 +424,12 @@ function parse_url_content(&$a) {
|
||||||
|
|
||||||
$url= $siteinfo["url"];
|
$url= $siteinfo["url"];
|
||||||
|
|
||||||
|
// If the link contains BBCode stuff, make a short link out of this to avoid parsing problems
|
||||||
|
if (strpos($url, '[') OR strpos($url, ']')) {
|
||||||
|
require_once("include/network.php");
|
||||||
|
$url = short_link($url);
|
||||||
|
}
|
||||||
|
|
||||||
$sitedata = "";
|
$sitedata = "";
|
||||||
|
|
||||||
if($siteinfo["title"] == "") {
|
if($siteinfo["title"] == "") {
|
||||||
|
|
Loading…
Reference in a new issue