From e034a2819b2258d42cc01655ac63bd9ad75eb19a Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Thu, 10 Sep 2015 00:38:50 +0300 Subject: [PATCH] =?UTF-8?q?ADD=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=BA=D0=B0=20=D0=BF=D0=BE=20=D1=80=D0=B0=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BA=D0=B5=20=D0=BD=D0=B0=20=D1=8D=D0=BA=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=81=D1=82=D0=B0=D1=82=D1=8C=D0=B8;=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B0=20=D1=81=D0=BF=D0=B5=D1=86=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=B2=D0=BE=D0=BB=D0=BE=D0=B2,=20=D0=BA=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D1=8B=D0=B5=20=D0=B5=D1=89=D1=91=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B2=D1=8B=D1=80=D0=B5=D0=B7=D0=B0=D0=BB=D0=B8=D1=81=D1=8C=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=BA=20=D1=82=D0=B5=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/controllers/ArticlesController.php | 3 ++- ground/views/articles/edit.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/controllers/ArticlesController.php b/ground/controllers/ArticlesController.php index 78b8228..03b3428 100644 --- a/ground/controllers/ArticlesController.php +++ b/ground/controllers/ArticlesController.php @@ -55,7 +55,7 @@ class ArticlesController extends Controller App::error404(); } - App::setConfig('title', $article->title . ' - wikipoints.ru'); + App::setConfig('title', $article->title . ' :: Статьи на wikipoints.ru'); self::render('articles/edit.php', array( 'article' => $article, @@ -77,6 +77,7 @@ class ArticlesController extends Controller $title = $_POST['title']; $text = $_POST['text']; $text = strip_tags($text); + $text = str_replace(array('<','>','"',"'",'--'), array('<','>','″','′','–'), $text); $allowComments = (int) isset($_POST['allowComments']); $article = $id ? Article::model()->getByPK($id) : new Article(); diff --git a/ground/views/articles/edit.php b/ground/views/articles/edit.php index 0210a8b..3cd0638 100644 --- a/ground/views/articles/edit.php +++ b/ground/views/articles/edit.php @@ -61,6 +61,7 @@ function insertAtCursor(myField, myValue) {
+ *текст* **текст** ***текст*** http://ссылка.ру # заголвок1 ## заголовк2 ### заголовк3 [#512|ссылка на точку 512]