List of commits:
Subject Hash Author Date (UTC)
Allow strange chars in cache names 00b05d99d3d3cf0229249718d2482af40f063972 Catalin(ux) M. BOIE 2016-07-11 04:04:08
Small improvements to builder and worker 08f9bc668f7f192af61868bebd644bea64b6aedd Catalin(ux) M. BOIE 2016-07-11 04:01:47
SELinux improvements to support the builder a2b52360b43be53786ee5d68c9fcb2db14f29c0c Catalin(ux) M. BOIE 2016-07-11 04:00:57
Document docker on Download web section 5d4ece50d6b4dc3d4902afd9264a45834ceb3592 Catalin(ux) M. BOIE 2016-07-11 03:54:31
Doc: restore context for rc.local eb5fa1cab84737e3440cfbca147d50859b8f9a53 Catalin(ux) M. BOIE 2016-07-07 04:09:23
Fixed small bug preventing e-mail to show in report 26d884b3a332f3c3b241c194912b9653749a9427 Catalin(ux) M. BOIE 2016-07-07 03:37:23
Do not clobber the cron file 5c68384676d9b8087255dda3b62e3588fc50e6c7 Catalin(ux) M. BOIE 2016-07-06 22:03:58
When using rg_json_encode, no quotes needed. c4b7693a81e593918f8c06408f16b4884a92773b Catalin(ux) M. BOIE 2016-07-06 05:21:00
Remove summary from tables because violates HTML5 specs. :( 11865f18e979f3849dbb265e5c5350f4a638088b Catalin(ux) M. BOIE 2016-07-06 05:00:11
Bump version to 0.55 58652b8250a867c0f4e9e3a9c76737443f242b36 Catalin(ux) M. BOIE 2016-07-06 04:48:24
Big commit of a lot of unrelated changes. Shame on me! e503666df79ef1553d0bb7ffd1d12a6b62748b1c Catalin(ux) M. BOIE 2016-07-06 04:44:43
Do not free resources if query fails. 57baca81e9087a00a8e2e1807c932de2fb9769c4 Catalin(ux) M. BOIE 2016-06-26 11:47:09
Packaging changes: prepared for Debian build c32cb09dc84615f4984ce5f8fac4064accbeeb28 Catalin(ux) M. BOIE 2016-06-12 05:59:14
webhooks - rename Name to Type 7d774d4818950b3d3916e834b0dde3081b90960e Catalin(ux) M. BOIE 2016-05-08 11:36:45
Correct license for spec file (Affero -> A) 3635ec1e7b416524ad15e06c884b4546600d68e4 Catalin(ux) M. BOIE 2016-05-08 11:09:01
Bump version to 0.54 a6f90aaaedcaa67073408100b6a0abd5c7ddd6fa Catalin(ux) M. BOIE 2016-05-08 11:06:23
SELinux: permit access to /tmp b33571b8aa45d49053ef20cbb485ef36dc6f5e49 Catalin(ux) M. BOIE 2016-05-08 11:05:44
TODO changes 55917d4f8f63aefcac02b4c583dbe252ee04aa87 Catalin(ux) M. BOIE 2016-05-08 11:04:35
Get rid of php-mbstring: is not a standard extention 0934a66ce1a94f4066b1b7e18edbe0acb4dd3206 Catalin(ux) M. BOIE 2016-05-08 11:04:20
Corrected set_pass function cache actions e6fd4033b3018fb20d22f6e29c162b4330ec935f Catalin(ux) M. BOIE 2016-04-25 05:20:03
Commit 00b05d99d3d3cf0229249718d2482af40f063972 - Allow strange chars in cache names
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-07-11 04:04
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-07-11 04:04
Parent(s): 08f9bc668f7f192af61868bebd644bea64b6aedd
Signer:
Signing key:
Signing status: N
Tree: c8c322e6d681f6e75c80ebcf8de255b71203c844
File Lines added Lines deleted
inc/cache.inc.php 32 14
File inc/cache.inc.php changed (mode: 100644) (index 5e8197d..33c3944)
... ... function rg_cache_core_adump($ns_var)
343 343 /********************************* Client side functions */ /********************************* Client side functions */
344 344
345 345 /* /*
346 * Prepares a string to be send to the wire
346 * Prepares a string to be send to the wire (key part)
347 */
348 function rg_cache_prepare_key($s)
349 {
350 return addcslashes($s, "\n\r\\");
351 }
352
353 /*
354 * Prepares a string to be send to the wire (value part)
347 355 */ */
348 356 function rg_cache_prepare($s) function rg_cache_prepare($s)
349 357 { {
 
... ... function rg_cache_send($cmd, $para, $flags)
419 427
420 428 /* /*
421 429 * Returns a variable from the cache daemon * Returns a variable from the cache daemon
422 * @timeout_in_ms is the connection timeout not variable timeout.
423 430 */ */
424 431 function rg_cache_get($ns_var) function rg_cache_get($ns_var)
425 432 { {
433 global $rg_cache_debug;
434
426 435 rg_prof_start('cache_get'); rg_prof_start('cache_get');
427 436
428 437 $ret = FALSE; $ret = FALSE;
429 438 while (1) { while (1) {
430 $ret = rg_cache_core_get($ns_var);
439 $k = rg_cache_prepare_key($ns_var);
440 $ret = rg_cache_core_get($k);
431 441 if ($ret !== FALSE) if ($ret !== FALSE)
432 442 break; break;
433 443
434 444 $flags = 0; $flags = 0;
435 $r = rg_cache_send('GET', $ns_var, $flags);
445 $r = rg_cache_send('GET', $k, $flags);
436 446 if ($r === FALSE) if ($r === FALSE)
437 447 break; break;
438 448
 
... ... function rg_cache_get($ns_var)
446 456 break; break;
447 457 } }
448 458
459 if ($rg_cache_debug)
460 rg_log_ml('cache_get returns: ' . print_r($ret, TRUE));
461
449 462 rg_prof_end('cache_get'); rg_prof_end('cache_get');
450 463 return $ret; return $ret;
451 464 } }
 
... ... function rg_cache_set($ns_var, $value, $flags)
458 471 rg_prof_start('cache_set'); rg_prof_start('cache_set');
459 472
460 473 while (1) { while (1) {
461 rg_cache_core_set($ns_var, $value);
474 $k = rg_cache_prepare_key($ns_var);
475 rg_cache_core_set($k, $value);
462 476
463 $para = $ns_var . '=' . rg_cache_prepare($value);
477 $para = $k . '=' . rg_cache_prepare($value);
464 478 $ret = rg_cache_send('SET', $para, $flags); $ret = rg_cache_send('SET', $para, $flags);
465 479 if ($ret === FALSE) if ($ret === FALSE)
466 480 break; break;
 
... ... function rg_cache_inc($ns_var)
483 497 rg_cache_core_inc($vs_var); rg_cache_core_inc($vs_var);
484 498
485 499 while (1) { while (1) {
486 $ret = rg_cache_send('INC', $ns_var, $flags);
500 $k = rg_cache_prepare_key($ns_var);
501 $ret = rg_cache_send('INC', $k, $flags);
487 502 if ($ret === FALSE) if ($ret === FALSE)
488 503 break; break;
489 504 if ($ret === TRUE) if ($ret === TRUE)
 
... ... function rg_cache_unset($ns_var, $flags)
506 521
507 522 rg_prof_start('cache_unset'); rg_prof_start('cache_unset');
508 523
509 rg_cache_core_unset($ns_var);
510 $ret = rg_cache_send('UNSET', $ns_var, $flags);
524 $k = rg_cache_prepare_key($ns_var);
525 rg_cache_core_unset($k);
526 $ret = rg_cache_send('UNSET', $k, $flags);
511 527
512 528 if ($rg_cache_debug) if ($rg_cache_debug)
513 rg_log('cache_unset(' . $ns_var . ')');
529 rg_log('cache_unset(' . $k . ')');
514 530
515 531 rg_prof_end('cache_unset'); rg_prof_end('cache_unset');
516 532 return $ret; return $ret;
 
... ... function rg_cache_merge($ns_var, $list, $flags)
523 539 { {
524 540 rg_prof_start('cache_merge'); rg_prof_start('cache_merge');
525 541
526 rg_cache_core_merge($ns_var, $list);
542 $k = rg_cache_prepare_key($ns_var);
543 rg_cache_core_merge($k, $list);
527 544
528 $para = $ns_var . '=' . rg_cache_prepare($list);
545 $para = $k . '=' . rg_cache_prepare($list);
529 546 $ret = rg_cache_send('MERGE', $para, $flags); $ret = rg_cache_send('MERGE', $para, $flags);
530 547
531 548 rg_prof_end('cache_merge'); rg_prof_end('cache_merge');
 
... ... function rg_cache_apush($ns_var, $value, $flags)
539 556 { {
540 557 rg_prof_start('cache_apush'); rg_prof_start('cache_apush');
541 558
542 rg_cache_core_apush($ns_var, $value);
559 $k = rg_cache_prepare_key($ns_var);
560 rg_cache_core_apush($k, $value);
543 561
544 $para = $ns_var . '=' . rg_cache_prepare($value);
562 $para = $k . '=' . rg_cache_prepare($value);
545 563 $ret = rg_cache_send('APUSH', $para, $flags); $ret = rg_cache_send('APUSH', $para, $flags);
546 564
547 565 rg_prof_end('cache_apush'); rg_prof_end('cache_apush');
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main