1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Bugtracker #4705 - extra slashes in news preview with MAGIC_QUOTES_GPG true and an image bbcode

This commit is contained in:
e107steved
2009-03-29 21:40:36 +00:00
parent c40a70d6c5
commit 090b555d96

View File

@@ -9,9 +9,9 @@
* News Administration * News Administration
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
* $Revision: 1.31 $ * $Revision: 1.32 $
* $Date: 2009-01-26 08:19:44 $ * $Date: 2009-03-29 21:40:36 $
* $Author: e107coders $ * $Author: e107steved $
*/ */
require_once("../class2.php"); require_once("../class2.php");
@@ -850,7 +850,7 @@ class admin_newspost
<td class='label'>".NWSLAN_13.":<br /></td> <td class='label'>".NWSLAN_13.":<br /></td>
<td class='control'>"; <td class='control'>";
$val = (strstr($e107->tp->post_toForm($_POST['data']), "[img]http") ? $_POST['data'] : str_replace("[img]../", "[img]", $e107->tp->post_toForm($_POST['data']))); $val = (strstr($e107->tp->post_toForm($_POST['data']), "[img]http") ? $e107->tp->post_toForm($_POST['data']) : str_replace("[img]../", "[img]", $e107->tp->post_toForm($_POST['data'])));
$text .= $frm->bbarea('data', $val, 'news', 'helpb'); $text .= $frm->bbarea('data', $val, 'news', 'helpb');
// Extended news form textarea // Extended news form textarea