Skip to content

Commit 5810532

Browse files
authored
Merge pull request #10 from thib66/fix-php7.3-regexp-hyphen
Fix php7.3 regexp hyphen
2 parents f3f698a + 4e2ee6d commit 5810532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postprocess-module/postprocess_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function postprocess_controller()
225225
}
226226

227227
if ($option['type']=="newfeed") {
228-
$newfeedname = preg_replace('/[^\w\s-:]/','',$params->$key);
228+
$newfeedname = preg_replace('/[^\w\s\-:]/','',$params->$key);
229229
if ($params->$key=="")
230230
return array('content'=>"new feed name is blank");
231231
if ($newfeedname!=$params->$key)

postprocess-module/postprocess_model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct($mysqli)
2525
public function set($userid,$data)
2626
{
2727
$userid = (int) $userid;
28-
// $data = preg_replace('/[^\w\s-.",:#{}\[\]]/','',$data);
28+
// $data = preg_replace('/[^\w\s\-.",:#{}\[\]]/','',$data);
2929
$data = json_encode($data);
3030

3131
if ($this->get($userid)===false) {

0 commit comments

Comments
 (0)