Changeset 2175


Ignore:
Timestamp:
Apr 18, 2009, 1:00:26 AM (10 years ago)
Author:
bruno
Message:

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.9/mindi/mindi

    r2174 r2175  
    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.