Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timedelete.php fails because of a bad regex on line 289 #24

Open
abarclay opened this issue Jan 17, 2016 · 10 comments
Open

timedelete.php fails because of a bad regex on line 289 #24

abarclay opened this issue Jan 17, 2016 · 10 comments

Comments

@abarclay
Copy link

As a workaround, I changed the regex seperators to % symbols like this:
elseif (preg_match('%' . "^([0-9]{1,2})-,/,.-,/,.$" . '%i', $post_date, $date_regs))

Now the error I am getting is about $tso not being set. As a workaround I set $tso = 0 at the top of the file. Now the delete function works.

@boelle boelle mentioned this issue Apr 6, 2016
@boelle
Copy link

boelle commented Apr 6, 2016

mine looked a bit different

} elseif (preg_match('%' . "^([0-9]{1,2})-,/,.-,/,.$" . '%i', $post_date, $date_regs)) {

but there is no $tso no where in the file

@boelle
Copy link

boelle commented Apr 6, 2016

but no need to change $tso

changing the seperators was enough

@tvandame
Copy link

tvandame commented May 3, 2016

Is someone going to open a pull request for this change.

@boelle
Copy link

boelle commented May 3, 2016

the problem is that the whole system needs an overhaul to be up to date in regards of most modern php and sql versions... if you look arround at the other issues you will also see that the git owner is not much arround

@tvandame
Copy link

tvandame commented May 4, 2016

Yea I was thinking about it on my way home form work... I thought maybe I should fork it and start patching out standing issues. Then once it's more stable start a re-write in a modern framework. I would only be doing this to keep my development skills up seeing I'm now in management.

@boelle
Copy link

boelle commented May 4, 2016

my skills are limited to copy&paste and hack code from instructions given. and to test functions as such. the description of the system says it can compute overtime, but i raised an seperate issue on that since there are no where to enter normal work hours. otherwise the system's general thought and idea is not bad

@davidwachs
Copy link

The code on the "timeedit.php" page works, so if you copy this preg_match:
} elseif (preg_match('/' . "^([0-9]{1,2})[-\,\/,.]([0-9]{1,2})[-\,\/,.](([0-9]{2})|([0-9]{4}))$" . '/i', $post_date, $date_regs)) {
it seems to work fine..

@boelle
Copy link

boelle commented Nov 2, 2017

i gave up on the software in general... that is also why i have not posted in more than a year

@davidwachs
Copy link

its a shame, because i think it's very usable software. Have you found any good, free alternatives?

@ddziubanski
Copy link

ddziubanski commented Nov 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants