1
0
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:
e107steved
2008-03-12 22:15:13 +00:00
parent f2af10ea96
commit 964c58cc65

View File

@@ -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;
}