Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-forum
Commits
cabd911c
Commit
cabd911c
authored
Jun 04, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- added err_message for '/intranet/report-bug-on-page'
added sanity check for empty subject
parent
0fe12284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
new-system-incident.tcl
www/new-system-incident.tcl
+14
-6
No files found.
www/new-system-incident.tcl
View file @
cabd911c
...
...
@@ -7,21 +7,20 @@
ad_page_contract
{
Creates a new system error from a
"Report this error"
button.
Works as an inteface between the request procesor generating
Works as an inte
r
face between the request procesor generating
the incident and the forum module that works differntly
then
the old ACS ticket tracker.
So there are several difficulties:
- This page is publicly accessible, so it may be used for
denial of service attacks by flooding the system with
incidents
- We have to route the incidents to
- This page is publicly accessible, so it may be used to flood
the system with incidents
@author frank.bergmann@project-open.com
}
{
{
error_url:trim
""
}
{
error_location:trim
""
}
{
error_info:trim,allhtml
""
}
{
error_message:trim,allhtml
""
}
{
error_first_names:trim
""
}
{
error_last_name:trim
""
}
{
error_user_email:trim
""
}
...
...
@@ -44,6 +43,7 @@ set current_user_id [ad_get_user_id]
ns_log Notice
"new-system-incident: error_url=
$error
_url"
ns_log Notice
"new-system-incident: error_info=
$error
_info"
ns_log Notice
"new-system-incident: error_message=
$error
_message"
ns_log Notice
"new-system-incident: error_first_names=
$error
_first_names"
ns_log Notice
"new-system-incident: error_last_name=
$error
_last_name"
ns_log Notice
"new-system-incident: error_user_email=
$error
_user_email"
...
...
@@ -249,7 +249,6 @@ if {0 == $package_conf_item_id} {
}
# -----------------------------------------------------------------
# Determine and/or Create Server ConfItem
# -----------------------------------------------------------------
...
...
@@ -395,11 +394,20 @@ $more_info
Package Version(s):
$core
_version
Package Versions:
$package
_versions
Error Message:
$error
_message
Error Info:
$error
_info
"
set
message
[
string
range
$message
0 9998
]
# Avoid empty subject
if
{
""
==
$subject
}
{
set subject
"Report Bug On Page"
}
if
{[
catch
{
db_dml topic_insert
{
insert into im_forum_topics
(
...
...
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