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

')-strpos($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); $_SESSION['oLP']->set_author($author_fixed);