Changeset 2804


Ignore:
Timestamp:
Apr 29, 2011, 3:39:01 PM (8 years ago)
Author:
bruno
Message:

r2176@localhost (orig r2175): bruno | 2009-04-18 01:00:26 +0200
Reverse the result of the test as it returns 0 when it finds the ../ sequence and then proceed with the treatment


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mindi/mindi

    r2803 r2804  
    824824
    825825    echo $file | grep -q '\.\./'
    826     if [ $? -ne 0 ]; then
     826    if [ $? -eq 0 ]; then
    827827        # We need to normalise the path with .. in it
    828828        file=`echo $file | perl -pi -e 's|([^/]+)/([^/]+)/\.\./([^/]+)|$1/$3|'`
Note: See TracChangeset for help on using the changeset viewer.