From 540c00afd267eb44b0201528a7067971cebf0c60 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 1 Sep 2008 20:39:29 +0200 Subject: [PATCH] [svn r16201] Minor - Multiline in the lp author --- main/newscorm/lp_controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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']);