From 9925f2bc4acfb21f7f477ee77069bcab0abfb4d9 Mon Sep 17 00:00:00 2001
From: Danang Probo Sayekti
Date: Wed, 22 Jan 2014 13:04:54 +0700
Subject: [PATCH] Add multi tags
Add multi tags feature.
---
admin/action/create_page.php | 26 +++++++++------------
admin/action/create_post.php | 32 +++++++++++--------------
admin/action/edit_bio.php | 12 +++-------
admin/action/edit_page.php | 10 ++------
admin/action/edit_post.php | 11 ++-------
system/htmly.php | 2 +-
system/includes/functions.php | 54 ++++++++++++++++++++++++++++++++-----------
themes/clean/main.html.php | 2 +-
themes/clean/post.html.php | 2 +-
themes/default/main.html.php | 2 +-
themes/default/post.html.php | 2 +-
11 files changed, 78 insertions(+), 77 deletions(-)
diff --git a/admin/action/create_page.php b/admin/action/create_page.php
index ced2024..1a0d17c 100644
--- a/admin/action/create_page.php
+++ b/admin/action/create_page.php
@@ -6,7 +6,8 @@
include '../includes/session.php';
if(isset($_POST['submit'])) {
- $post_url = $_POST['url'];
+ $post_url = preg_replace('/[^A-Za-z0-9,.-]/u', '', $_POST['url']);
+ $post_url = rtrim($post_url, ',\.\-');
$post_content = $_POST['content'];
}
if(!empty($post_url) && !empty($post_content)) {
@@ -57,20 +58,15 @@
+
@@ -57,14 +56,8 @@