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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
1c258087
Commit
1c258087
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixing typos
parent
f1518a54
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/util.php
+10
-9
10 additions, 9 deletions
lib/util.php
with
10 additions
and
9 deletions
lib/util.php
+
10
−
9
View file @
1c258087
...
...
@@ -228,7 +228,7 @@ class OC_Util {
$webServerRestart
=
true
;
}
//common hint for all file permissons error messages
//common hint for all file permiss
i
ons error messages
$permissionsHint
=
'Permissions can usually be fixed by '
.
'<a href="'
.
$defaults
->
getDocBaseUrl
()
.
'/server/5.0/admin_manual/installation/installation_source.html'
.
'#set-the-directory-permissions" target="_blank">giving the webserver write access to the root directory</a>.'
;
...
...
@@ -560,7 +560,7 @@ class OC_Util {
* @see OC_Util::callRegister()
* @see OC_Util::isCallRegistered()
* @description
* Also required for the client side to compute the p
i
ont in time when to
* Also required for the client side to compute the po
i
nt in time when to
* request a fresh token. The client will do so when nearly 97% of the
* time span coded here has expired.
*/
...
...
@@ -640,14 +640,15 @@ class OC_Util {
* This function is used to sanitize HTML and should be applied on any
* string or array of strings before displaying it on a web page.
*
* @param string
or
array of strings
* @param string
|
array of strings
* @return array with sanitized strings or a single sanitized string, depends on the input parameter.
*/
public
static
function
sanitizeHTML
(
&
$value
)
{
if
(
is_array
(
$value
))
{
array_walk_recursive
(
$value
,
'OC_Util::sanitizeHTML'
);
}
else
{
$value
=
htmlentities
((
string
)
$value
,
ENT_QUOTES
,
'UTF-8'
);
//Specify encoding for PHP<5.4
//Specify encoding for PHP<5.4
$value
=
htmlentities
((
string
)
$value
,
ENT_QUOTES
,
'UTF-8'
);
}
return
$value
;
}
...
...
@@ -756,7 +757,7 @@ class OC_Util {
}
/**
* Check if the setlocal call does
n'
t work. This can happen if the right
* Check if the setlocal call does
no
t work. This can happen if the right
* local packages are not available on the server.
* @return bool
*/
...
...
@@ -828,8 +829,8 @@ class OC_Util {
/**
* @brief Generates a cryptographic
al
secure pseudorandom string
* @param Int
with the
length of the random string
* @brief Generates a cryptographic secure pseudo
-
random string
* @param Int
$
length of the random string
* @return String
* Please also update secureRNGAvailable if you change something here
*/
...
...
@@ -970,7 +971,7 @@ class OC_Util {
/**
* @brief Clear the opcode cache if one exists
* This is necessary for writing to the config file
* in case the opcode cache does
n'
t revalidate files
* in case the opcode cache does
no
t re
-
validate files
* @return void
*/
public
static
function
clearOpcodeCache
()
{
...
...
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