projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9787bcd
)
MessagePreview.php
author
Alan
<alan@roojs.com>
Thu, 29 Sep 2022 07:39:45 +0000
(15:39 +0800)
committer
Alan
<alan@roojs.com>
Thu, 29 Sep 2022 07:39:45 +0000
(15:39 +0800)
MessagePreview.php
patch
|
blob
|
history
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
ce7bef4
..
94cc132
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-38,8
+38,8
@@
class Pman_Core_MessagePreview extends Pman
if (isset($_REQUEST['ontable']) && !empty($_REQUEST['onid']) && !empty($_REQUEST['evtype'])) {
$tn = preg_replace('/[^a-z_]+/i', '', $_REQUEST['ontable']);
- var_dump($tn);
- $t = DB_DataObject::factory(
preg_replace('/[a-z_]+/i', '', $_REQUEST['ontable'])
);
+
+ $t = DB_DataObject::factory(
$tn
);
if (!is_a($t, 'DB_DataObject') && !is_a($t, 'PDO_DataObject')) {
$this->jerr("invalid URL");
}