Skip to content

Commit

Permalink
(fixed #1144 BP from #852) changed op_is_accessable_url to pass acces…
Browse files Browse the repository at this point in the history
…sablity check for absolute URL and absolute path
  • Loading branch information
Tajima Itsuro committed Jun 7, 2010
1 parent c874ea8 commit 5190d74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/helper/opUtilHelper.php
Expand Up @@ -666,6 +666,11 @@ function op_decoration($string, $is_strip = false, $is_use_stylesheet = null)

function op_is_accessable_url($uri)
{
if ('/' === $uri[0] || preg_match('#^[a-z][a-z0-9\+.\-]*\://#i', $uri))
{
return true;
}

$info = sfContext::getInstance()->getController()->convertUrlStringToParameters($uri);

if (!empty($info[0]))
Expand Down

0 comments on commit 5190d74

Please sign in to comment.