Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-webclient
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-webclient
Commits
91e69205
Commit
91e69205
authored
Jul 04, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: дополнительно кодируем комментарий для Ajax-запросов
parent
ef545df9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
etersoft_typos.js
etersoft_typos.js
+2
-1
server.php
server.php
+1
-1
No files found.
etersoft_typos.js
View file @
91e69205
...
...
@@ -69,7 +69,8 @@ var ETY = {
}
//Выделенный текст
var
user_comment
=
document
.
getElementById
(
"e_typos_comment"
).
value
.
trim
().
substr
(
0
,
50
);
var
user_comment
=
encodeURIComponent
(
document
.
getElementById
(
"e_typos_comment"
).
value
);
user_comment
=
user_comment
.
trim
().
substr
(
0
,
50
);
if
(
user_comment
==
''
)
{
user_comment
=
""
;
}
...
...
server.php
View file @
91e69205
...
...
@@ -29,7 +29,7 @@ if (check_header() === 0 || get_ip() === 0) {
if
(
!
isset
(
$_REQUEST
[
'e_typos_comment'
]))
{
$comment
=
''
;
}
else
{
$comment
=
trim
(
htmlspecialchars
(
substr
(
$_REQUEST
[
'e_typos_comment'
]
,
0
,
50
)));
$comment
=
trim
(
htmlspecialchars
(
substr
(
rawurldecode
(
$_REQUEST
[
'e_typos_comment'
])
,
0
,
50
)));
}
$url
=
trim
(
htmlspecialchars
(
substr
(
$_REQUEST
[
'e_typos_url'
],
0
,
300
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment