Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f493e97f
Commit
f493e97f
authored
12 years ago
by
Björn Schießle
Browse files
Options
Downloads
Patches
Plain Diff
always generate access token, also for forms shown to anonymous users (e.g. public shares)
parent
4fd53eca
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/templates/layout.base.php
+2
-0
2 additions, 0 deletions
core/templates/layout.base.php
core/templates/layout.guest.php
+2
-0
2 additions, 0 deletions
core/templates/layout.guest.php
lib/template.php
+2
-4
2 additions, 4 deletions
lib/template.php
with
6 additions
and
4 deletions
core/templates/layout.base.php
+
2
−
0
View file @
f493e97f
...
...
@@ -10,6 +10,8 @@
<script
type=
"text/javascript"
>
var
oc_webroot
=
'
<?php
echo
OC
::
$WEBROOT
;
?>
'
;
var
oc_appswebroots
=
<?php
echo
$_
[
'apps_paths'
]
?>
;
var
oc_requesttoken
=
'
<?php
echo
$_
[
'requesttoken'
];
?>
'
;
var
oc_requestlifespan
=
'
<?php
echo
$_
[
'requestlifespan'
];
?>
'
;
</script>
<?php
foreach
(
$_
[
'jsfiles'
]
as
$jsfile
)
:
?>
<script
type=
"text/javascript"
src=
"
<?php
echo
$jsfile
;
?>
"
></script>
...
...
This diff is collapsed.
Click to expand it.
core/templates/layout.guest.php
+
2
−
0
View file @
f493e97f
...
...
@@ -10,6 +10,8 @@
<script
type=
"text/javascript"
>
var
oc_webroot
=
'
<?php
echo
OC
::
$WEBROOT
;
?>
'
;
var
oc_appswebroots
=
<?php
echo
$_
[
'apps_paths'
]
?>
;
var
oc_requesttoken
=
'
<?php
echo
$_
[
'requesttoken'
];
?>
'
;
var
oc_requestlifespan
=
'
<?php
echo
$_
[
'requestlifespan'
];
?>
'
;
</script>
<?php
foreach
(
$_
[
'jsfiles'
]
as
$jsfile
)
:
?>
<script
type=
"text/javascript"
src=
"
<?php
echo
$jsfile
;
?>
"
></script>
...
...
This diff is collapsed.
Click to expand it.
lib/template.php
+
2
−
4
View file @
f493e97f
...
...
@@ -155,10 +155,8 @@ class OC_Template{
$this
->
renderas
=
$renderas
;
$this
->
application
=
$app
;
$this
->
vars
=
array
();
if
(
$renderas
==
'user'
)
{
$this
->
vars
[
'requesttoken'
]
=
OC_Util
::
callRegister
();
$this
->
vars
[
'requestlifespan'
]
=
OC_Util
::
$callLifespan
;
}
$this
->
vars
[
'requesttoken'
]
=
OC_Util
::
callRegister
();
$this
->
vars
[
'requestlifespan'
]
=
OC_Util
::
$callLifespan
;
$parts
=
explode
(
'/'
,
$app
);
// fix translation when app is something like core/lostpassword
$this
->
l10n
=
OC_L10N
::
get
(
$parts
[
0
]);
header
(
'X-Frame-Options: Sameorigin'
);
...
...
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