Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
709ec9d5
Commit
709ec9d5
authored
14 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
Patch for 1.7.3 bug
parent
a499ea7a
No related branches found
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
README
+1
-0
1 addition, 0 deletions
README
patches/check_page_owner_exists.diff
+15
-0
15 additions, 0 deletions
patches/check_page_owner_exists.diff
setup.sh
+1
-1
1 addition, 1 deletion
setup.sh
with
17 additions
and
1 deletion
README
+
1
−
0
View file @
709ec9d5
...
...
@@ -85,6 +85,7 @@ Just run the setup.sh script. If any plugins are added, add this to the setup.sh
** Patches
*******
All patches are located in the /pathces directory. These include:
patches/check_page_owner_exists.diff * check that $page_owner is set or a non-existant profile returns 500 error (FIXED IN 1.7.4)
patches/relationship_get_set_public.diff *__get __set not declared correctly
patches/lowercase_post.diff *Forms use POST which doesn't validate
patches/strip_tags_name_field.diff *Display Name field allowed html that often was not escaped upon output
...
...
This diff is collapsed.
Click to expand it.
patches/check_page_owner_exists.diff
0 → 100644
+
15
−
0
View file @
709ec9d5
### Eclipse Workspace Patch 1.0
#P UNL_Elgg
Index: elgg/mod/profile/start.php
===================================================================
--- elgg/mod/profile/start.php (revision 7321)
+++ elgg/mod/profile/start.php (working copy)
@@ -203,7 +203,7 @@
if (get_context() == "profile") {
$page_owner = page_owner_entity();
- if ($page_owner->canEdit()) {
+ if ($page_owner && $page_owner->canEdit()) {
add_submenu_item(elgg_echo('profile:editdetails'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/");
add_submenu_item(elgg_echo('profile:editicon'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/editicon/");
}
This diff is collapsed.
Click to expand it.
setup.sh
+
1
−
1
View file @
709ec9d5
...
...
@@ -8,7 +8,7 @@ patch -p0 -s -N -r tmp.rej < patches/relationship_get_set_pu
patch
-p0
-s
-N
-d
elgg
-r
tmp.rej < patches/lowercase_post.diff
>
/dev/null
patch
-p0
-s
-N
-d
elgg/actions/user
-r
tmp.rej < patches/strip_tags_name_field.diff
>
/dev/null
patch
-p0
-s
-N
-d
elgg/mod/groups
-r
tmp.rej < patches/add_closing_labels.diff
>
/dev/null
patch
-p0
-s
-N
-d
elgg/mod/profile
-r
tmp.rej < patches/check_page_owner_exists.diff
>
/dev/null
rm
tmp.rej &> /dev/null
echo
'Setup successful'
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