Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Nounous
framadate
Commits
71c34984
Commit
71c34984
authored
7 years ago
by
Thomas Citharel
Browse files
Options
Downloads
Patches
Plain Diff
Fix URL Routing for actions
Closes #283 Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
4631b8d4
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
app/classes/Framadate/Utils.php
+3
-1
3 additions, 1 deletion
app/classes/Framadate/Utils.php
with
3 additions
and
1 deletion
app/classes/Framadate/Utils.php
+
3
−
1
View file @
71c34984
...
...
@@ -84,11 +84,13 @@ class Utils {
* @param string $id The poll's id
* @param bool $admin True to generate an admin URL, false for a public one
* @param string $vote_id (optional) The vote's unique id
* @param null $action
* @param null $action_value
* @return string The poll's URL.
*/
public
static
function
getUrlSondage
(
$id
,
$admin
=
false
,
$vote_id
=
''
,
$action
=
null
,
$action_value
=
null
)
{
// URL-Encode $action_value
$action_value
=
$action_value
?
null
:
Utils
::
base64url_encode
(
$action_value
);
$action_value
=
$action_value
?
Utils
::
base64url_encode
(
$action_value
)
:
null
;
if
(
URL_PROPRE
)
{
if
(
$admin
===
true
)
{
...
...
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