function checkStr( $sInput ) {
$sRegexp = '~^(:?%u00[0-9][0-9a-zA-Z])++$~';
return preg_match($sRegexp, $sInput);
}
assert('checkStr("%u003c%u0073%u0063%u0072%u0069%u0070%u0074%u003e")');
assert('checkStr("%u003c")');
assert('checkStr("%u0046%u005c")');
assert('checkStr("asd")==false');
assert('checkStr("%a003da")==false');
assert('checkStr("%k41ad")==false');
assert('checkStr("Бла бла бла")==false');
assert('checkStr("%u003c%u0073%u0063%")==false');
assert('checkStr("%u003c%u0073ASFQ%u0063")==false');
add action=mark-connection chain=input comment="mark input gw0" in-interface=\
bridge-gw0 new-connection-mark=to_astral0 passthrough=no
add action=mark-connection chain=input comment="mark input gw1" in-interface=\
bridge-gw1 new-connection-mark=to_astral1 passthrough=no
add action=mark-routing chain=output connection-mark=to_astral0 \
new-routing-mark=to_astral0 passthrough=no
add action=mark-routing chain=output connection-mark=to_astral1 \
new-routing-mark=to_astral1 passthrough=no
add action=mark-connection chain=forward connection-mark=no-mark \
in-interface=bridge-gw0 new-connection-mark=to_astral0 passthrough=no
add action=mark-connection chain=forward connection-mark=no-mark \
in-interface=bridge-gw1 new-connection-mark=to_astral1 passthrough=no
add action=jump chain=prerouting comment="process home connmark" \
connection-mark=no-mark dst-address-type=!local in-interface=bridge-home \
jump-target=prerouting_wan
add action=jump chain=prerouting comment="process dmz connmark" \
connection-mark=no-mark dst-address-type=!local in-interface=bridge-dmz \
jump-target=prerouting_wan
add action=jump chain=prerouting comment="set routing marks from home" \
connection-mark=!no-mark in-interface=bridge-home jump-target=\
prerouting_markroute
add action=jump chain=prerouting comment="set routing marks from dmz" \
connection-mark=!no-mark in-interface=bridge-dmz jump-target=\
prerouting_markroute
add action=mark-connection chain=prerouting_wan comment="use only gw0 list" \
connection-mark=no-mark new-connection-mark=to_astral0 src-address-list=\
wan_only_gw0
add action=mark-connection chain=prerouting_wan comment="use only gw1 list" \
connection-mark=no-mark new-connection-mark=to_astral1 src-address-list=\
wan_only_gw1
add action=mark-connection chain=prerouting_wan comment="use prefer gw0 list" \
connection-mark=no-mark new-connection-mark=to_astral0 src-address-list=\
wan_failover_prefer_gw0
add action=mark-connection chain=prerouting_wan comment="use prefer gw1 list" \
connection-mark=no-mark new-connection-mark=to_astral1 src-address-list=\
wan_failover_prefer_gw1
add action=mark-connection chain=prerouting_wan comment=PCC connection-mark=\
no-mark new-connection-mark=to_astral0 per-connection-classifier=\
both-addresses:2/0
add action=mark-connection chain=prerouting_wan comment=PCC connection-mark=\
no-mark new-connection-mark=to_astral1 per-connection-classifier=\
both-addresses:2/1
add action=mark-routing chain=prerouting_markroute comment=\
"mark packet to_astral0" connection-mark=to_astral0 new-routing-mark=\
to_astral0
add action=mark-routing chain=prerouting_markroute comment=\
"mark packet to_astral1" connection-mark=to_astral1 new-routing-mark=\
to_astral1
$rFrom = new datetime('first day of -6 month midnight');
$rTo = new datetime('last day of -6 month midnight');
var_dump($rFrom, $rTo);
или укажите на явные ошибки
catalogProduct.list like '%|1|%'
class foo {
private static function minifyJS($fooo) {
echo 'called '.__METHOD__;
return '';
}
public static function test() {
$start_buffer = "<script>foooo</script>";
$start_buffer = preg_replace_callback(
'/<\s*script(?![^>]*\.js)[^>]*>(.*?)<\/script>/s',
"self::minifyJS",
$start_buffer
);
}
}
foo::test();
Some file system backup tools emit warnings or errors if the files they are trying to copy change while the copy proceeds. When taking a base backup of an active database, this situation is normal and not an error. However, you need to ensure that you can distinguish complaints of this sort from real errors. For example, some versions of rsync return a separate exit code for «vanished source files», and you can write a driver script to accept this exit code as a non-error case. Also, some versions of GNU tar return an error code indistinguishable from a fatal error if a file was truncated while tar was copying it. Fortunately, GNU tar versions 1.16 and later exit with 1 if a file was changed during the backup, and 2 for other errors. With GNU tar version 1.23 and later, you can use the warning options --warning=no-file-changed --warning=no-file-removed to hide the related warning messages.