Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
a04e4018
Commit
a04e4018
authored
May 31, 2017
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fehler in der Validation behoben. Die Überprüfuing erfolgt nun in der Funktion parseFormData
parent
35aac80f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
app/MetaGer.php
app/MetaGer.php
+17
-15
No files found.
app/MetaGer.php
View file @
a04e4018
...
...
@@ -253,23 +253,10 @@ class MetaGer
if
(
LaravelLocalization
::
getCurrentLocale
()
===
"en"
)
{
$this
->
ads
=
[];
}
$this
->
validated
=
false
;
if
(
isset
(
$this
->
password
))
{
# Wir bieten einen bezahlten API-Zugriff an, bei dem dementsprechend die Werbung ausgeblendet wurde:
# Aktuell ist es nur die Uni-Mainz. Deshalb überprüfen wir auch nur diese.
$password
=
getenv
(
'mainz'
);
$passwordBerlin
=
getenv
(
'berlin'
);
$eingabe
=
$this
->
eingabe
;
$password
=
md5
(
$eingabe
.
$password
);
$passwordBerlin
=
md5
(
$eingabe
.
$passwordBerlin
);
if
(
$this
->
password
===
$password
||
$this
->
password
===
$passwordBerlin
)
{
$this
->
ads
=
[];
$this
->
products
=
[];
if
(
$this
->
validated
)
{
$this
->
validated
=
true
;
$this
->
maps
=
false
;
}
}
if
(
count
(
$this
->
results
)
<=
0
)
{
$this
->
errors
[]
=
trans
(
'metaGer.results.failed'
);
...
...
@@ -979,6 +966,21 @@ class MetaGer
}
else
{
$this
->
quicktips
=
true
;
}
$this
->
validated
=
false
;
if
(
isset
(
$this
->
password
))
{
# Wir bieten einen bezahlten API-Zugriff an, bei dem dementsprechend die Werbung ausgeblendet wurde:
# Aktuell ist es nur die Uni-Mainz. Deshalb überprüfen wir auch nur diese.
$password
=
getenv
(
'mainz'
);
$passwordBerlin
=
getenv
(
'berlin'
);
$eingabe
=
$this
->
eingabe
;
$password
=
md5
(
$eingabe
.
$password
);
$passwordBerlin
=
md5
(
$eingabe
.
$passwordBerlin
);
if
(
$this
->
password
===
$password
||
$this
->
password
===
$passwordBerlin
)
{
$this
->
validated
=
true
;
}
}
$this
->
out
=
$request
->
input
(
'out'
,
"html"
);
# Standard output format html
if
(
$this
->
out
!==
"html"
&&
$this
->
out
!==
"json"
&&
$this
->
out
!==
"results"
&&
$this
->
out
!==
"results-with-style"
&&
$this
->
out
!==
"result-count"
&&
$this
->
out
!==
"rss20"
)
{
...
...
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