diff --git a/main/newscorm/lp_controller.php b/main/newscorm/lp_controller.php index e92d3c3c2c..38a6be5eff 100644 --- a/main/newscorm/lp_controller.php +++ b/main/newscorm/lp_controller.php @@ -575,10 +575,10 @@ switch($action) else{ $_SESSION['refresh'] = 1; $_SESSION['oLP']->set_name($_REQUEST['lp_name']); - $author= $_REQUEST['lp_author']; + $author= $_REQUEST['lp_author']; //fixing the author name (no body or html tags) - $len = strripos($author,'

')-strpos($author,'

'); - $author_fixed=substr($author,strpos($author,'

'), $len+4); + $len = strripos($author,'

')-stripos($author,'

'); + $author_fixed=substr($author,stripos($author,'

'), $len+4); $_SESSION['oLP']->set_author($author_fixed); $_SESSION['oLP']->set_encoding($_REQUEST['lp_encoding']);