Changeset 15698 for gsdl/trunk/perllib/basebuildproc.pm
- Timestamp:
- 2008-05-26T14:03:26+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/basebuildproc.pm
r15697 r15698 424 424 $value =~ s/\n/\\n/g; 425 425 $value =~ s/\r/\\r/g; 426 if ($value =~ /-{70,}/) {427 # if value contains 70 or more hyphens in a row we need428 # to escape them to prevent txt2db from treating them429 # as a separator430 $value =~ s/-/&\#045;/gi;431 }432 426 433 427 # special case for URL metadata … … 499 493 $contains .= "\".$1"; 500 494 } 501 else { 495 else 496 { 502 497 $contains .= "\".$child"; 503 498 } … … 547 542 foreach my $infodb_value (@{$infodb_map->{$infodb_value_key}}) 548 543 { 544 if ($infodb_value =~ /-{70,}/) 545 { 546 # if value contains 70 or more hyphens in a row we need to escape them 547 # to prevent txt2db from treating them as a separator 548 $infodb_value =~ s/-/&\#045;/gi; 549 } 549 550 print $handle "<$infodb_value_key>" . $infodb_value . "\n"; 550 551 }
Note:
See TracChangeset
for help on using the changeset viewer.