filter special charactors in tag query
This commit is contained in:
parent
f9e0e2318b
commit
19b08505a2
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ from common.utils import (
|
|||
PageLinksGenerator,
|
||||
user_identity_required,
|
||||
)
|
||||
from journal.models import Tag
|
||||
from users.views import query_identity
|
||||
|
||||
from ..models import *
|
||||
|
@ -114,6 +115,7 @@ def search(request):
|
|||
except Exception:
|
||||
categories = visible_categories(request)
|
||||
tag = request.GET.get("tag", default="").strip()
|
||||
tag = Tag.deep_cleanup_title(tag)
|
||||
p = request.GET.get("page", default="1")
|
||||
p = int(p) if p.isdigit() else 1
|
||||
if not (keywords or tag):
|
||||
|
|
Loading…
Add table
Reference in a new issue