Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
MetaGer
Commits
c8141ce2
Commit
c8141ce2
authored
May 25, 2020
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancelling search if query is empty after parsing form data
parent
3e92d0f4
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/Http/Controllers/MetaGerSearch.php
app/Http/Controllers/MetaGerSearch.php
+4
-0
No files found.
app/Http/Controllers/MetaGerSearch.php
View file @
c8141ce2
...
...
@@ -61,6 +61,10 @@ class MetaGerSearch extends Controller
$timings
[
"checkSpecialSearches"
]
=
microtime
(
true
)
-
$time
;
}
if
(
empty
(
$metager
->
getQ
())){
return
$metager
->
createView
();
}
if
(
$spamEntry
!==
null
&&
Cache
::
has
(
'spam.'
.
$metager
->
getFokus
()
.
"."
.
md5
(
$spamEntry
)))
{
$responseContent
=
Cache
::
get
(
'spam.'
.
$metager
->
getFokus
()
.
"."
.
md5
(
$spamEntry
));
$responseContent
=
preg_replace
(
'/(name="eingabe"\s+value=")[^"]+/'
,
"$1
$eingabe
"
,
$responseContent
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment