Changeset 96

Show
Ignore:
Timestamp:
04/16/07 14:38:11 (2 years ago)
Author:
ben
Message:

Changing the size delimiter from ? to @@, to prevent clashing with existing URLs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contenttoolbar/contenttoolbar_text_processing.php

    r81 r96  
    1818                \$height = 200; 
    1919                \$url = str_replace("&","&",\$matches[1]); 
    20                 preg_match("/(.*)\?(\d+)x(\d+)/i",\$url,\$size); 
     20                preg_match("/(.*)\@\@(\d+)x(\d+)/i",\$url,\$size); 
    2121                if(count(\$size)==4){ 
    2222                  \$url = \$size[1];                   
  • contenttoolbar/js/edit.js

    r82 r96  
    359359        w = w.value; 
    360360        h = h.value; 
    361         size = (w!="" && h!="")?'?'+w+'x'+h:''; 
     361        size = (w!="" && h!="")?'@@'+w+'x'+h:''; 
    362362 
    363363        text = '{{video:'+value+size+'}}';