Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
TeDomum
Nextcloud
Commits
2073d3b0
Commit
2073d3b0
authored
13 years ago
by
Kamil Domanski
Browse files
Options
Downloads
Patches
Plain Diff
fix 404
parent
0bf67298
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.htaccess
+1
-1
1 addition, 1 deletion
.htaccess
core/templates/404.php
+1
-1
1 addition, 1 deletion
core/templates/404.php
lib/files.php
+1
-1
1 addition, 1 deletion
lib/files.php
lib/setup.php
+1
-1
1 addition, 1 deletion
lib/setup.php
with
4 additions
and
4 deletions
.htaccess
+
1
−
1
View file @
2073d3b0
ErrorDocument
404 //
owncloud
/templates/404.php
ErrorDocument
404 //
core
/templates/404.php
php_value upload_max_filesize 20M
php_value post_max_size 20M
SetEnv
htaccessWorking true
...
...
This diff is collapsed.
Click to expand it.
core/templates/404.php
+
1
−
1
View file @
2073d3b0
<?php
if
(
!
isset
(
$_
)){
//also provide standalone error page
require_once
'../lib/base.php'
;
require_once
'../
../
lib/base.php'
;
require
(
'template.php'
);
$tmpl
=
new
OC_TEMPLATE
(
''
,
'404'
,
'guest'
);
...
...
This diff is collapsed.
Click to expand it.
lib/files.php
+
1
−
1
View file @
2073d3b0
...
...
@@ -293,7 +293,7 @@ class OC_FILES {
$size
=
OC_HELPER
::
humanFileSize
(
$size
);
$size
=
substr
(
$size
,
0
,
-
1
);
//strip the B
$size
=
str_replace
(
' '
,
''
,
$size
);
//remove the space between the size and the postfix
$content
=
"ErrorDocument 404 /
$WEBROOT
/templates/404.php
\n
"
;
//custom 404 error page
$content
=
"ErrorDocument 404 /
$WEBROOT
/
core/
templates/404.php
\n
"
;
//custom 404 error page
$content
.
=
"php_value upload_max_filesize
$size
\n
"
;
//upload limit
$content
.
=
"php_value post_max_size
$size
\n
"
;
$content
.
=
"SetEnv htaccessWorking true
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
lib/setup.php
+
1
−
1
View file @
2073d3b0
...
...
@@ -184,7 +184,7 @@ class OC_SETUP {
private
static
function
createHtaccess
()
{
global
$SERVERROOT
;
global
$WEBROOT
;
$content
=
"ErrorDocument 404 /
$WEBROOT
/templates/404.php
\n
"
;
//custom 404 error page
$content
=
"ErrorDocument 404 /
$WEBROOT
/
core/
templates/404.php
\n
"
;
//custom 404 error page
$content
.
=
"php_value upload_max_filesize 20M
\n
"
;
//upload limit
$content
.
=
"php_value post_max_size 20M
\n
"
;
$content
.
=
"SetEnv htaccessWorking true
\n
"
;
...
...
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