Close Connection when there is no connection value.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2013-09-25 15:29:32 +00:00
parent 034a5c0288
commit f70ce644ce
1410 changed files with 7188 additions and 53541 deletions

View file

@ -313,7 +313,7 @@ class EmbedFilter
*/
function checkObjectTag(&$content)
{
preg_match_all('/<\s*object\s*[^>]+(?:\/?>)/is', $content, $m);
preg_match_all('/<\s*object\s*[^>]+(?:\/?>?)/is', $content, $m);
$objectTagList = $m[0];
if($objectTagList)
{
@ -366,7 +366,7 @@ class EmbedFilter
*/
function checkEmbedTag(&$content)
{
preg_match_all('/<\s*embed\s*[^>]+(?:\/?>)/is', $content, $m);
preg_match_all('/<\s*embed\s*[^>]+(?:\/?>?)/is', $content, $m);
$embedTagList = $m[0];
if($embedTagList)
{
@ -422,7 +422,7 @@ class EmbedFilter
// check in Purifier class
return;
preg_match_all('/<\s*iframe\s*[^>]+(?:\/?>)/is', $content, $m);
preg_match_all('/<\s*iframe\s*[^>]+(?:\/?>?)/is', $content, $m);
$iframeTagList = $m[0];
if($iframeTagList)
{
@ -462,7 +462,7 @@ class EmbedFilter
*/
function checkParamTag(&$content)
{
preg_match_all('/<\s*param\s*[^>]+(?:\/?>)/is', $content, $m);
preg_match_all('/<\s*param\s*[^>]+(?:\/?>?)/is', $content, $m);
$paramTagList = $m[0];
if($paramTagList)
{
@ -666,6 +666,11 @@ class EmbedFilter
$buff .= sprintf('$whiteIframeUrlList[] = \'%s\';', $patternList->body);
}
}
if(Context::getDefaultUrl())
{
$buff .= sprintf('$whiteIframeUrlList[] = \'%s\';', Context::getDefaultUrl());
}
$buff .= '?>';
FileHandler::writeFile($this->whiteUrlCacheFile, $buff);
}