Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
c1f36ea3
Commit
c1f36ea3
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
csrf: Fix CRSF violation on client login
parent
54b8a8ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/client/templates/thread-entry.tmpl.php
+2
-22
2 additions, 22 deletions
include/client/templates/thread-entry.tmpl.php
with
2 additions
and
22 deletions
include/client/templates/thread-entry.tmpl.php
+
2
−
22
View file @
c1f36ea3
...
...
@@ -15,33 +15,13 @@ if ($user && ($url = $user->get_gravatar(48)))
<?php
}
?>
<div
class=
"header"
>
<div
class=
"pull-right"
>
<?php
if
(
$entry
->
hasActions
())
{
$actions
=
$entry
->
getActions
();
?>
<span
class=
"muted-button pull-right"
data-dropdown=
"#entry-action-more-
<?php
echo
$entry
->
getId
();
?>
"
>
<i
class=
"icon-caret-down"
></i>
</span>
<div
id=
"entry-action-more-
<?php
echo
$entry
->
getId
();
?>
"
class=
"action-dropdown anchor-right"
>
<ul
class=
"title"
>
<?php
foreach
(
$actions
as
$group
=>
$list
)
{
foreach
(
$list
as
$id
=>
$action
)
{
?>
<li>
<a
class=
"no-pjax"
href=
"#"
onclick=
"javascript:
<?php
echo
str_replace
(
'"'
,
'\\"'
,
$action
->
getJsStub
());
?>
; return false;"
>
<i
class=
"
<?php
echo
$action
->
getIcon
();
?>
"
></i>
<?php
echo
$action
->
getName
();
?>
</a></li>
<?php
}
}
?>
</ul>
</div>
<?php
}
?>
<span
style=
"vertical-align:middle;"
class=
"textra"
>
<span
style=
"vertical-align:middle;"
class=
"textra"
>
<?php
if
(
$entry
->
flags
&
ThreadEntry
::
FLAG_EDITED
)
{
?>
<span
class=
"label label-bare"
title=
"
<?php
echo
sprintf
(
__
(
'Edited on %s by %s'
),
Format
::
datetime
(
$entry
->
updated
),
'You'
);
?>
"
>
<?php
echo
__
(
'Edited'
);
?>
</span>
<?php
}
?>
</span>
</span>
</div>
<?php
echo
sprintf
(
__
(
'<b>%s</b> posted %s'
),
$name
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment