mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Bugtracker #4348 - don't look for image file if its a URL - suspected bug in file_exists() PHP5.2.5 on XP
This commit is contained in:
@@ -26,8 +26,8 @@ foreach($imgParms as $k => $v)
|
||||
$parmStr .= $tp -> toAttribute($k)."='".$tp -> toAttribute($v)."' ";
|
||||
}
|
||||
|
||||
|
||||
if((strpos($code_text,'../') === FALSE) && file_exists(e_IMAGE."newspost_images/".$code_text))
|
||||
// Only look for file if not a url - suspected bug in PHP 5.2.5 on XP
|
||||
if((strpos($code_text,'../') === FALSE) && (strpos($code_text,'://') === FALSE) && file_exists(e_IMAGE."newspost_images/".$code_text))
|
||||
{
|
||||
$code_text = e_IMAGE."newspost_images/".$code_text;
|
||||
}
|
||||
|
Reference in New Issue
Block a user